I am trying to display data in a bar graph from mysql DB. I can display the array it creates, but as soon as I add in the line
$columnChart = new FusionCharts("column2D", "myFirstChart" , 600, 300, "chart-1", "json", $jsonEncodedData);
It causes an Internal Error. I cannot seem to display the data. Where can I start to debug this? If I print_r(array_values($arrData)); I get:
Array ( [0] => Array ( [caption] => Time of Flight Chart [showValues] => 0 [theme] => zune ) [1] => Array ( [0] => Array ( [label] => 1 [value] => 0.000 ) [1] => Array ( [label] => 2 [value] => 0.000 ) [2] => Array ( [label] => 3 [value] => 0.000 ) [3] => Array ( [label] => 4 [value] => 0.000 ) [4] => Array ( [label] => 5 [value] => 2.473 ) [5] => Array ( [label] => 6 [value] => 2.313 ) ) )