even more compact code showing this strange behavior, can be copied and
pasted to http://code.google.com/apis/ajax/playground/
function drawVisualization() {
// Create and populate the data table from json data
var jsonData =
'{"cols":[{"type":"string","label":"Time"},{"type":"number","label":"Variable
1"}],"rows":[{"c":[{"v":"2013-12-28
21:00:00"},{"v":"1.1"}]},{"c":[{"v":"2013-12-28
21:35:00"},{"v":"1.1"}]},{"c":[{"v":"2013-12-28
21:40:00"},{"v":"0.2"}]},{"c":[{"v":"2013-12-28
21:45:00"},{"v":"1.2"}]},{"c":[{"v":"2013-12-28
21:50:00"},{"v":"1.3"}]},{"c":[{"v":"2013-12-28 21:55:00"},{"v":"0.5"}]}]}';
var data = new google.visualization.DataTable(jsonData);
// Create and draw the visualization.
new google.visualization.LineChart(document.getElementById('visualization'
)).
draw(data, {curveType: "function"}
);
}
On Sunday, December 29, 2013 5:37:20 PM UTC+1, JRo wrote:
>
> Any idea what am I doing wrong in the attached code? It works just fine
> until I put "curveType: 'function'," into options, once I do that it
> renders quite weird picture :(
>
>
>
--
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/groups/opt_out.