<!doctype html> <html> <head> <script src="//cdn.anychart.com/js/7.4.0/anychart.min.js"></script> <style> html, body, #container { width: 100%; height: 100%; margin: 0; padding: 0; } </style> </head> <body> <div id="container"></div> <script type="text/javascript"> anychart.onDocumentReady(function() { //create area chart chart = anychart.area(); //set container id for the chart chart.container('container'); //set chart title text settings chart.title().text('Area Chart'); //set yScale minimum to 0 chart.yScale().minimum(0); //set yAxis elements position settings var yAxis = chart.yAxis(); yAxis.title().margin().bottom(20); yAxis.labels().padding().right(15); //create area series with passed data var series = chart.area([ ['P1' , 162], ['P2' , 134], ['P3' , 116], ['P4' , 122], ['P5' , 178], ['P6' , 144], ['P7' , 125], ['P8' , 176], ['P9' , 156], ['P10', 195], ['P11', 135], ['P12', 176], ['P13', 167], ['P14', 142], ['P15', 117], ['P16', 113], ['P17', 132], ['P18', 146], ['P19', 169], ['P20', 184] ]); //set series color settings series.stroke('2 #1D8BD1'); series.fill('#1D8BD1 0.2'); //set series data markers settings series.markers() .enabled(true) .fill('#1D8BD1'); series.hoverMarkers().enabled(true); //initiate chart drawing chart.draw(); }); </script> </body> </html>