My JSON data is: { "cols": [ {"id":"","label":"Duration
Time","pattern":"","type":"Date"}, {"id":"","label":"Idle
Time","pattern":"","type":"timeofday"} ], "rows": [ {"c":[{"v":
"2015-02-06" ,"f": null}, {"v": [00,00,10] ,"f": "00:00:10"}]}, {"c":[{"v":
"2015-02-06" ,"f": null}, {"v": [00,00,07] ,"f": "00:00:07"}]}, {"c":[{"v":
"2015-02-13" ,"f": null}, {"v": [00,00,04] ,"f": "00:00:04"}]}, {"c":[{"v":
"2015-02-13" ,"f": null}, {"v": [00,00,18] ,"f": "00:00:18"}]} ]
Whenever I am plotting anything else on x-axis that is time or number, I am
able to do so. But when I am plotting date, it does not show anything.
Part of my script is:
var piechartdata = new google.visualization.DataTable(jsonPieChartData);
// Instantiate and draw our pie chart, passing in some options.
var chart = new
google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(piechartdata, {
width: 800,
height: 600,
pointSize:5,
chartArea: { left:"10%",top:"10%",width:"80%",height:"80%" },
legend: {position:'top'},
hAxis: {
title: "Date"
}
});
}
Could anyone tell me what the problem is in my scripting or json data?
--
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.