Sunburst Color Conditions
Problem:
- For the sunburst chart, is it possible to change the color based on condition? I have tried to add rules under plot, but it does not seem to work.
- Is it possible to pass one more attribute in the series to indicate the color? How would you use/access this attribute in the plot? (User tried to use the custom token to series, but it does not seem to be parsed in the sunburst chart.)
Solution:
In this sunburst demo, we added 'data-level' and 'data-year' as custom tokens and as you can see in the attached illustration, we can access it in the tool-tip. Please use the demo for reference.