Home › Forums › Chart Support › SQLServer + PHP + Canvasjs › Reply To: SQLServer + PHP + Canvasjs
Hello @manoj-mohan
Thanks a lot for your help, I found the problem, If I get only numbers from database the chart works fine
$dataPoints = array( array("y" => 4, "label" => 56), array("y" => 4, "label" => 68), array("y" => 8, "label" => 12), array("y" => 28, "label" => 1) ); But, when I get a string, the chart doesn't work. $dataPoints = array( array("y" => 4, "label" => "Bancario y Financiero"), array("y" => 4, "label" => "Comercio Exterior"), array("y" => 8, "label" => "Competencia Económica"), array("y" => 28, "label" => "Corporativo") );
Do you have any idea?
Best regards