anychart.onDocumentReady(function () {
anychart.data.loadJsonFile(
'https://cdn.anychart.com/samples/sunburst-charts/the-population-of-the-europe/data.json',
var dataTree = anychart.data.tree(data, 'as-table');
var chart = anychart.sunburst(dataTree);
chart.calculationMode('parent-independent');
chart.title('Europe Population');
chart.palette(['#0288d1', '#d4e157', '#ff6e40', '#f8bbd0']);
.format('{%Name}\n{%Value}{scale:(1000000)(1)|( mln)}');
.format('Population: {%Value}{scale:(1000000)(1)|( mln)}');
return anychart.color.darken(this.parentColor, 0.15);
chart.container('container');