John,

We can't process you php code, so in order to help you, we need you to
point us at a web page (privately if you wish) or create an example html
from your page that hides your data.

If your want to debug this on your own, look in your browser's javascript
debugger and note whether there are any errors reported.

Another useful technique is to display a Table with your data, just to see
that you are getting the data you expected.


On Mon, Jul 25, 2016 at 4:20 AM, John <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/google-visualization-api/76753e6a-19a2-48ef-a833-04654a26eb15%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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/CAOtcSJOsm3WLEMDhcZqJtz0USebHGTPnb31wR82PhZeBAqMv%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to