This sample displays the population of Europe.
Noteworthy things in the code:
- 'fill' is set in the data for the root element;
- a palette is set for the chart;
- the chart's tooltip is customized using the scale method.
Visualizing the European population data by region and country, the current JavaScript (HTML5) based Sunburst Chart features a custom color palette. Tooltips here are customized using the scale method.
It is also interesting to note that ‘fill’ in this interactive Sunburst Chart is set in the data for the root element.