Heinb

Internal Server Error (500) with line $columnChart = new FusionCharts

Recommended Posts

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 ) ) )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now