Author Topic: Easy way to plot a time series of data?  (Read 343 times)

ergophobe

  • Inner Core
  • Hero Member
  • *
  • Posts: 4443
    • View Profile
Easy way to plot a time series of data?
« 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?

ergophobe

  • Inner Core
  • Hero Member
  • *
  • Posts: 4443
    • View Profile
Re: Easy way to plot a time series of data?
« Reply #1 on: August 15, 2018, 10:58:59 PM »

jetboy

  • Inner Core
  • Sr. Member
  • *
  • Posts: 406
  • Hens of warfare!
    • View Profile
    • Email
Re: Easy way to plot a time series of data?
« Reply #2 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.

ergophobe

  • Inner Core
  • Hero Member
  • *
  • Posts: 4443
    • View Profile
Re: Easy way to plot a time series of data?
« Reply #3 on: August 21, 2018, 06:01:54 PM »
Excellent. Thanks.

That looks easy:

Quote
npm install chart.js --save

No third-party server dependency. Nice