CanvasJS PHP Charts supports animated rendering that makes chart look more appealing. The given example shows animated Pie Chart that along with PHP source code that you can try running locally.
<?php $dataPoints = array( array("label"=> "Food + Drinks", "y"=> 590), array("label"=> "Activities and Entertainments", "y"=> 261), array("label"=> "Health and Fitness", "y"=> 158), array("label"=> "Shopping & Misc", "y"=> 72), array("label"=> "Transportation", "y"=> 191), array("label"=> "Rent", "y"=> 573), array("label"=> "Travel Insurance", "y"=> 126) ); ?> <!DOCTYPE HTML> <html> <head> <script> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, exportEnabled: true, title:{ text: "Average Expense Per Day in Thai Baht" }, subtitles: [{ text: "Currency Used: Thai Baht (฿)" }], data: [{ type: "pie", showInLegend: "true", legendText: "{label}", indexLabelFontSize: 16, indexLabel: "{label} - #percent%", yValueFormatString: "฿#,##0", dataPoints: <?php echo json_encode($dataPoints, JSON_NUMERIC_CHECK); ?> }] }); 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>
Duration of animation can be customized by using animationDuration property. Other commonly used customization options include explodeOnClick, highlightEnabled, exploded, etc.