I need to see the javascript after it is rendered by the server. Open the
page in a browser and view to source code, then paste it here.
On Monday, November 12, 2012 12:34:23 PM UTC-5, Brenno Leal wrote:
>
> Hey guys, i was tryng using the asgallant's exemple, but i've not sucess.
>
> the browser generate the right code, and if i copy and paste the code to
> playground, it works! why it doesnt works here?
>
> take a look in my code:
>
>
> <script type="text/javascript">
> function drawVisualization() {
> // Create and populate the data table.
> var data = new google.visualization.DataTable();
> data.addColumn('number', 'Sensor');
>
> <?php
> foreach ($val as $valores) {
> echo "data.addRows([[$valores]]);";
> }
> ?>
> // Create and draw the visualization.
> new google.visualization.ImageSparkLine(
> document.getElementById('visualization')).draw(data, null);
> }
> google.setOnLoadCallback(drawVisualization);
>
> </script>
>
> I've sure that $val isnt empty!
>
> Cya!
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/_AzJ0d6A8C8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.