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/-/4NLU1QW3lJAJ.
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.