Sunburst Chart - Custom Color control for 1. and 2. Level

Hi,
Is it possible to control colors for each part in the 1. and 2. Level?
I want to have colors red, yellow and green. each section (no matter in which level) will based on it's value should have one of these three colors.

Greets,
Nima

5 Replies

DG Durga Gopalakrishnan Syncfusion Team August 6, 2020 03:55 PM UTC

Hi Nima, 

Greetings from Syncfusion. 

We have analysed your query. As of now, we don’t have support to customize the colour of each part in a level. We can customize the colours of each segment using palette property. We have prepared sample for your reference. Please check with the below code snippet and screenshot. 

Code Snippet 

$("#container").ejSunburstChart({ 
       palette:['red', 'blue', 'green', 'yellow', 'orange'] 
}); 

Screenshot 
 
Sample 
 
UG 

Kindly revert us, if you have any concerns. 

Regards, 
Durga G 



NS Nima Samsami August 6, 2020 06:10 PM UTC

Hi Durga,
thanks for the response but it was not my question. 
i wanted to control the colors for each item based on it's value.
f.e. in your chart:
USA and Germany have the highest values (because they are bigger) so they should have the color green. France has the lowest Value and should be red then UK and India Yellow.
in 2nd Level f.e. by USA: Tech should be green, sales yello and the other three red.

How can i do it?

Greets,
Nima



DG Durga Gopalakrishnan Syncfusion Team August 8, 2020 06:31 AM UTC

Hi Nima, 

We have validated your reported scenario. As of now, we don’t have support to customize the color of each point in sunburst level. We have logged a feature request on this. Based on other logged tasks priority, this feature will be included in any of our upcoming release. You can keep track of the feature from the feedback portal below.  
  
  
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 
 
Regards, 
Durga G


MC Maikel Cordeiro October 17, 2020 11:06 AM UTC

Hi, how can I make a sunburst chart using EJ2?

If I got that right you sent an example using EJ1.

Thank you.


DG Durga Gopalakrishnan Syncfusion Team October 19, 2020 08:35 AM UTC

Hi Maikel, 

Sorry for inconvenience. Currently, we don’t have support for sunburst chart in EJ2. Please revert us, if you have any concerns. 

Regards, 
Durga G 


Loader.
Up arrow icon