Forum: PC-Programmierung show chart and update automatically in a certain time with chart.js


von Martin L. (tempusertempuser)


Lesenswert?

I have a csv file which looks like this:
1
timestamp:, co2(ppm):, temp(C):,humidity(%):
2
09:04:3,831,23.27,50.33
3
09:10:3,842,23.38,50.07
4
09:50:3,848,23.48,49.84
And I want to show it in a chart with three lines using chart.js. But I 
was unable to do so can zou help me? Additionnally i want to update the 
chart in a certain time intervall.

Regards

von Kolja L. (kolja82)


Lesenswert?

Probably you have convert your CSV file to a JSON object: 
http://techslides.com/convert-csv-to-json-in-javascript

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.