The Core

Why We Are Here => Web Development => Topic started by: ergophobe on August 15, 2018, 10:56:37 PM

Title: Easy way to plot a time series of data?
Post by: ergophobe on August 15, 2018, 10:56:37 PM
Basically, I have a data source that has a data point every hour. Each data source has a single number each hour, and I would plot maybe 4-5 on a graph.

I've pulled CSV data in using PHP plenty of times, so parsing the CSV file is not an issue. But how about making a pretty graph out of it? Any suggestions?
Title: Re: Easy way to plot a time series of data?
Post by: ergophobe on August 15, 2018, 10:58:59 PM
This looks easy
https://developers.google.com/chart/interactive/docs/gallery/linechart

Any other ideas?
Title: Re: Easy way to plot a time series of data?
Post by: jetboy on August 20, 2018, 02:18:56 PM
https://www.chartjs.org/

Lots of choice in JS libraries, but this one seems to pop up a lot.
Title: Re: Easy way to plot a time series of data?
Post by: ergophobe on August 21, 2018, 06:01:54 PM
Excellent. Thanks.

That looks easy:

Quotenpm install chart.js --save

No third-party server dependency. Nice