Hello guys, I've been trying to use the Google charts in order to make a column chart but I have been unsuccessful in displaying the plot. A white page loads when I output the results.
I made two files. One that gets the data from the database and encodes it
in a json format and the 2nd one uses the javascript to output the plot, as
instructed by the documentation.
Both files are attached. Certain data was replaced with "xxx.." to hide
sensitive information.
The output of my getData.php is :
{"cols":[{"label":"Curent","type":"number"},{"label":"Tensiune","type":"number"},{"label":"Energie_generata","type":"number"}],
"rows":[{"c":[{"v":10},{"v":15},{"v":3}]},{"c":[{"v":12},{"v":11},{"v":2}]},{"c":[{"v":10},{"v":15},{"v":3}]},{"c":[{"v":12},{"v":11},{"v":2}]},{"c":[{"v":0},{"v":0},{"v":0}]},{"c":[{"v":14},{"v":12},{"v":5}]},{"c":[{"v":0},{"v":0},{"v":0}]},{"c":[{"v":14},{"v":12},{"v":5}]}]}
I won't paste the index.php code since it can be viewed when opening the
file.
For sure I am not seeing something and for sure I am making a mistake but I
just can't see it and I can't understand why the plot isn't displayed.
I would appreciate any piece of advice.
Many thanks ! :D
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/76753e6a-19a2-48ef-a833-04654a26eb15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<<attachment: getData.php>>
<<attachment: index.php>>
