-
how can I set the position of the legend below the chart, e.g. in v4:
but this (and many many more properties) don't work anymore and it seems that there's no doc for this? futher: when my code is like this:
|
Beta Was this translation helpful? Give feedback.
Answered by
Aarebecca
May 10, 2023
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hustcc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In v5, there are two separate configuration items for layout: position and layout.
The
position
configuration determines where the components are located within different areas of the icon, such as up, down, left, and right.The
layout
configuration, on the other hand, determines how the components are arranged within their respective areas.For example, in the following code snippet, we position the legend to the left, which may result in a crowded space. To solve this issue, we adjust the size of the legend to provide enough space.
If we want to achieve the layout shown in the bottom left of the image, we can use the "layout" …