<!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('Spline-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.splineArea([ ['P1' , 1042], ['P2' , 2210], ['P3' , 2994], ['P4' , 2115], ['P5' , 2844], ['P6' , 1987], ['P7' , 1662], ['P8' , 1327], ['P9' , 1826], ['P10', 1699], ['P11', 1511], ['P12', 1904], ['P13', 1957], ['P14', 1296] ]); //set series data markers settings series.markers().enabled(true); series.hoverMarkers().enabled(true); //initiate chart drawing chart.draw(); }); </script> </body> </html>