anychart.data.loadCsvFile("https://docs.google.com/spreadsheets/d/e/2PACX-1vQ6LrnmF5Vd-pia1tSWdgvZtX2qKn-e7KZAxOkW2TVlxVJADm8zS9tvfjDnm_jHj3rGRo1_Zzar4g6C/pub?output=csv", function (data) { // create a data set // map the data var seriesData_1 = data.mapAs({x: 1, value: 1}); var seriesData_2 = data.mapAs({x: 1, value: 2}); var seriesData_3 = data.mapAs({x: 1, value: 3}); // create a chart var chart = anychart.area(data); // enable the value stacking mode chart.yScale().stackMode("value"); // create area series, set the data var series1 = chart.area(seriesData_1); var series2 = chart.area(seriesData_2); var series3 = chart.area(seriesData_3); // configure tooltips chart.tooltip().format("{%value} ({%yPercentOfCategory}{decimalsCount:2}%)"); // configure labels on the y-axis chart.yAxis().labels().format("{%value}"); // set the chart title chart.title("Stacked Area Chart"); // set the container id chart.container("container"); // initiate drawing the chart chart.draw(); });