Open AnotherCodeArtist opened 1 year ago
Grid is only for the rectangular coordinate. In the sunburst series, you can use series.center option to adjust the position, for example, center: ['50%', 200]
.
Yeah, but this serves the purpose only to a certain extend. series.center
moves the sunburst chart but does not increase the container, thus, the lower part of the chart can easily become invisible, since it gets clipped by the border of the container.
I need a solution that increases the gap between title and the actual chart. This works nice for those charts supporting grid
but also for sankey, which has its own series.top
property. What about introducing such a top
property for sunburst as well? Or is there a combination of properties (something like height
and center
that might do the trick?
Thanks for your pretty fast support!!
Yeah. I think it makes sense to support these position options for sunburst
series. Added it to the backlog.
Version
5.4.3
Link to Minimal Reproduction
https://codesandbox.io/s/cranky-leakey-5p3h5y?file=/src/index.js
Steps to Reproduce
Current Behavior
The
grid.top
setting has no effect, which leads to an overlap of the title and the chart. In contrast to sunburst this works for bar and line charts and also sankey has an approach (atop
property right in theseries
objects) to define a wider gap to the top.Expected Behavior
When setting
grid.top
this should lead to a broader gap between the chart and the top of the container.Environment
Any additional comments?
No response