This sample displays the distribution of gold medals at the Olympic Games in Sochi.
Noteworthy things in the code:
- the 'parent-independent' calculation method is selected;
- circular positioning is set for the last level labels;
- a label with medals statistics is shown as Center Content of the chart;
- when the drillChange event occurs, the last level is turned on and off (shown/hidden).
The Sunburst Chart which is pictured above on the page displays the distribution of gold medals at the Olympic Games in Sochi (2014) by country and sport.
Featuring the drilldown feature available in the AnyChart JavaScript charting library, the data visualization is based on the ‘parent-independent’ calculation method and includes the circular positioning for the last level labels. The overall gold medal statistics is displayed as the center content of the Sunburst Chart.
When the drillChange event occurs, the last level gets turned on or off, i.e. shown or hidden.