-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Labels are overlapped by slices in pie chart #664
Comments
Or put the labels in another Thanks for the report! |
Is anybody working on this? I tried to quickly add a fix to put labels in a separate |
Hi @maackle, that would be great. You're right, it is slightly more complicated because it means you need to start two separate If you find this too difficult, you could always use a |
@gordonwoodhull I made a PR for this. You're right, it was pretty straightforward (after I remembered how d3 works!). There could be some discussion about CSS class names; I wound up giving classes to the new groups as well as adding an extra class to labels~~, though none of that was strictly necessary~~. EDIT: just added a CSS rule for the new label class, so that one is necessary. |
Here it can be reproduced http://vzv.ucoz.ru/dc/pietrouble.html
Click on Deposits on the first chart, the second chart will be filtered, then click on Deposits again so the second chart will be reverted to the original state. Upper label (Contract enforcement) in the second chart is now partially hidden by the slice.
This bug happens because slices (g tags in svg) and labels (text tags) are mixed while all slices must come first and after them must come text tags. To fix it you can add
before
So all labels will be recreated.
The text was updated successfully, but these errors were encountered: