Highcharts: Can't get Sunburst rotation to work

Created on 14 May 2018  路  3Comments  路  Source: highcharts/highcharts

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

Not a bug

Most helpful comment

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.

All 3 comments

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/

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deanshub picture deanshub  路  3Comments

jocage picture jocage  路  3Comments

ananth-imagin picture ananth-imagin  路  3Comments

KacperMadej picture KacperMadej  路  3Comments

sebastianbochan picture sebastianbochan  路  3Comments