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