Spline Area Charts, also referred as Curved / Smoothed Area Chart, are similar to Area Charts except that the envelope of area is a smooth curve. Given example shows PHP Spline Area Chart along with source code that you can try running locally.
<?php $dataPoints = array( array("x" => 1483381800000 , "y" => 650), array("x" => 1483468200000 , "y" => 700), array("x" => 1483554600000 , "y" => 710), array("x" => 1483641000000 , "y" => 658), array("x" => 1483727400000 , "y" => 734), array("x" => 1483813800000 , "y" => 963), array("x" => 1483900200000 , "y" => 847), array("x" => 1483986600000 , "y" => 853), array("x" => 1484073000000 , "y" => 869), array("x" => 1484159400000 , "y" => 943), array("x" => 1484245800000 , "y" => 970), array("x" => 1484332200000 , "y" => 869), array("x" => 1484418600000 , "y" => 890), array("x" => 1484505000000 , "y" => 930) ); ?> <!DOCTYPE HTML> <html> <head> <script> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, theme: "light2", title:{ text: "Site Traffic" }, axisX: { valueFormatString: "DD MMM" }, axisY: { title: "Total Number of Visits", includeZero: true, maximum: 1200 }, data: [{ type: "splineArea", color: "#6599FF", xValueType: "dateTime", xValueFormatString: "DD MMM", yValueFormatString: "#,##0 Visits", dataPoints: <?php echo json_encode($dataPoints); ?> }] }); chart.render(); } </script> </head> <body> <div id="chartContainer" style="height: 370px; width: 100%;"></div> <script src="https://cdn.canvasjs.com/canvasjs.min.js"></script> </body> </html>
You can change the look and feel of the chart using the color and fillOpacity properties. Some of the other commonly used customization options include markerColor, markerBorderColor, etc.