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