Hi.
I'm logging temperature data as a csv file and would like to visualize it using dygraphs.
The csv looks like this:
2015-04-20T12:14:08+0200,23.8
2015-04-20T12:16:09+0200,23.6
2015-04-20T12:18:09+0200,22.9
2015-04-20T12:20:09+0200,22.6
2015-04-20T12:22:08+0200,23.5
2015-04-20T12:24:09+0200,24.4
2015-04-20T12:26:09+0200,24.5
2015-04-20T12:28:09+0200,24.3
2015-04-20T12:30:08+0200,23.2
2015-04-20T12:32:08+0200,23.2
When setting up my scripts I chose ISO-8601 for date/time column.
How to use them in dygraphs?
As a first attempt I tried this code at
http://jsfiddle.net/eM2Mg/But unfortunately it doesn't work.
g = new Dygraph(document.getElementById("graph"),
// For possible data formats, see http://dygraphs.com/data.html
// The x-values could also be dates, e.g. "2012/03/15"
"Date,Temperature\n" +
"http://www.andreas-weller.de/download/templog.txt",
{
// options go here. See http://dygraphs.com/options.html
legend: 'always',
animatedZooms: true,
title: 'dygraphs temp. test'
});
Regards,
Andreas