Mohit Prajapati
Mohit Prajapati

Reputation: 440

How to show the each levels with different color in sunburst chart?

I have created a sunburst chart with the help of the Anychart library. Now I want to fill different colors on each level. Like blue color background in all slice of level-1. all data is coming dynamically from SQL. How I can do this?Sample image of what I want

Upvotes: 1

Views: 1747

Answers (1)

AnyChart Support
AnyChart Support

Reputation: 3905

Colors of the children in Sunburst chart are inherited from the parent. It means the only way to achieve what you want is to set them for each point in the data. Please check this sample: https://playground.anychart.com/997YGRTI

Upvotes: 1

Related Questions