-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
follow pie series's position/size to place a label #1769
Comments
All you need to do is to add the label as a child of series, not chart itself. |
@martynasma Thanks, but it doesn't seem to work for JSON config, following the same structure by defining a child for chart |
It does work, you're just not defining relative position right.
This means 1800%. If you need to place it at 18%, you need to use 0.18 as a value. |
Thanks @martynasma . A small question, do you know why the documentation is mentioning 50 percent |
Hm, yeah, indeed. You're right. Not sure why this doesn't work for the series label. We'll need to get back to you on that. |
OK, so everything is in order. Phew. The thing is that You can also use
|
We have a label ref placed at the center of the donut chart.
While users resizing the chart, how we can keep the label follow the pie series' position/size to ensure the label is in the center and it can be resized according to the pie's size?
Codepen: https://codepen.io/flaming-cl/pen/dyxXRQX
Screen.Recording.2024-10-21.at.4.48.33.PM.mov
The text was updated successfully, but these errors were encountered: