I need a way to pass in a string that is formatted as you'll see in the
code below into the chart. if anybody could help out that will be
amazing!!!!
var points = "['Mon', 20, 28, 38, 45],['Tue', 31, 38, 55, 66],['Wed', 50,
55, 77, 80],['Thu', 77, 77, 66, 50],['Fri', 68, 66, 22, 15]"
google.setOnLoadCallback(drawChart);
function drawChart($points) {
var data = google.visualization.arrayToDataTable([
$points
// Treat first row as data as well.
], true);
var options = {
legend:'none'
};
var chart = new
google.visualization.CandlestickChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
the highlighted bit is the string I cant get to work...
--
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/3233955b-580a-4f4e-b333-56c61c960339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.