I am using canvasjs I want to plot data from database into the pie chart. I am able to get data from DB and pass it to an array.
array_push($dataPointskWh, array("label"=>$pr['name'],"y"=>$cr['sum_kwh_diff']));
How can I plot them? Also, the data would increase so I want to plot in that way.