Skip to content
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

Can't get Sunburst rotation to work #8337

Closed
Menighin opened this issue May 14, 2018 · 3 comments
Closed

Can't get Sunburst rotation to work #8337

Menighin opened this issue May 14, 2018 · 3 comments

Comments

@Menighin
Copy link

Expected behaviour

Labels to be rotated in the level 1 of each step of drill down.

Actual behaviour

Labels are not rotated

Live demo with steps to reproduce

https://jsfiddle.net/4ez5ca7y/

The last level has a rotationMode set but, as we can see, the labels are not rotated.

Disclaimer
I do know that I can use dataLabels.rotationMode to somehow achieve this but I don't think it is the same effect. Explaining:
If I set the color attribute to a level (as I did on this fiddle setting the level 1 to tomato) when I drill down the chart, the level 1 of each "drilled state" is set to tomato. So what I expect to achieve setting the rotationMode on the level, instead of the dataLabels, is that everytime I drill down, the level 1 would have the labels rotated (don't know if this makes sense, tough).
Besides that, the rotation options for the Level doesn't seem to be changing anything... :s

Product version

Latest

Affected browser(s)

Chrome

@KacperMadej
Copy link

Hi @Menighin

Thank you for reporting, but this doesn't look like a bug.

levelIsConstant is set to true by default, so after drill to node you will go to the clicked level. If you set that option to false then always (after each drill down or up) center will be level 1. Demo: https://jsfiddle.net/BlackLabel/4ez5ca7y/1/

@Menighin
Copy link
Author

Ahhhhhhnnn.... Thanks for the answer @KacperMadej. That is indeed the case.
Sorry for the trouble!

@jon-a-nygaard
Copy link
Contributor

A small comment to the issue, series.levels.rotationMode does not exist, it should be series.levels.dataLabels.rotationMode. The same goes for rotation.
I see that this is documented incorrectly in the API which I will take care of and fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants