anychart.onDocumentReady(function () {
{x: 'Heart disease', value: 659041},
{x: 'Alzheimer disease', value: 150005},
{x: 'Cancer', value: 599601},
{x: 'Accidents', value: 173040},
{x: 'Kidney disease', value: 51567},
{x: 'Suicide', value: 47511},
{x: 'CLRD', value: 156979},
{x: 'Stroke', value: 121499},
{x: 'Diabetes', value: 87647},
{x: 'Influenza and pneumonia', value: 49783}
var chart = anychart.pareto();
chart.title('Number of Deaths for 10 Leading Causes of Death in U.S. in 2019');
chart.yAxis(0).title('Number of deaths');
chart.yAxis(1).title('Cumulative percentage');
chart.palette(anychart.palettes.earth);
chart.getSeries(0).normal().fill('#c98411', 0.3);
chart.getSeries(0).hovered().fill('#c98411', 0.1);
chart.getSeries(0).selected().fill('#c98411', 0.5);
chart.getSeries(0).normal().hatchFill('forward-diagonal', '#c98411', 1, 15);
chart.getSeries(0).hovered().hatchFill('forward-diagonal', '#c98411', 1, 15);
chart.getSeries(0).selected().hatchFill('forward-diagonal', '#c98411', 1, 15);
chart.getSeries(0).normal().stroke('#c98411');
chart.getSeries(0).hovered().stroke('#c98411', 2);
chart.getSeries(0).selected().stroke('#c98411', 4);
chart.getSeries(1).normal().stroke('#991e00', 4, '4 4', 'round');
var column = chart.getSeriesAt(0);
column.tooltip().format('Value: {%Value}');
var line = chart.getSeriesAt(1);
.format('Cumulative Frequency: {%CF}% \n Relative Frequency: {%RF}%');
line.labels().enabled(true).anchor('right-bottom').format('{%CF}%');
chart.container('container');