Spline Area Charts are much like Area Charts except that the envelope of area is a smooth curve. It is also referred to as curved / smoothed area chart and is useful when you want to show smooth gradual changes instead of spikes. Charts are interactive and support animation, zooming, panning & exporting as image. Given example shows JavaScript Spline Area Chart along with HTML source code that you can edit in-browser or save to run it locally.
window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, title:{ text: "Company Revenue by Year" }, axisY: { title: "Revenue in USD", valueFormatString: "#0,,.", suffix: "mn", prefix: "$" }, data: [{ type: "splineArea", color: "rgba(54,158,173,.7)", markerSize: 5, xValueFormatString: "YYYY", yValueFormatString: "$#,##0.##", dataPoints: [ { x: new Date(2000, 0), y: 3289000 }, { x: new Date(2001, 0), y: 3830000 }, { x: new Date(2002, 0), y: 2009000 }, { x: new Date(2003, 0), y: 2840000 }, { x: new Date(2004, 0), y: 2396000 }, { x: new Date(2005, 0), y: 1613000 }, { x: new Date(2006, 0), y: 2821000 }, { x: new Date(2007, 0), y: 2000000 }, { x: new Date(2008, 0), y: 1397000 }, { x: new Date(2009, 0), y: 2506000 }, { x: new Date(2010, 0), y: 2798000 }, { x: new Date(2011, 0), y: 3386000 }, { x: new Date(2012, 0), y: 6704000}, { x: new Date(2013, 0), y: 6026000 }, { x: new Date(2014, 0), y: 2394000 }, { x: new Date(2015, 0), y: 1872000 }, { x: new Date(2016, 0), y: 2140000 } ] }] }); chart.render(); }
You can change color or lineColor to make the chart visually distinctive. Some other common customizations are fillOpacity, lineThickness, lineDashType etc.