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:54:40 PM UTC-5, Brenno Leal wrote:
>
> Hey guys,
>
> im trying to do it, but ive not sucess :C, i used the code that asgallant 
> used before, but the browser doesnt read it right :(. but, if i take the 
> code and copy and paste to playground, it works! let i show u the 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. What should i do?
>

-- 
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/-/o0VD8WaFu0cJ.
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.

Reply via email to