Reputation: 1406
I have an API call that returns a JSON format for live statistics - Things like number of people who registered, signed in, performed action a, etc.
Now, I would like to have a history with some presentable graphs. My plan is to hit the api once a day to get the json and save each result in an activerecord table.
Is there any better suggested way for this. Also, any gem recommendations to make my life easy.
Upvotes: 3
Views: 292
Reputation: 7111
Highcharts would be something to check out then. It can take the JSON and present good graphs.
It was the easiest I found so far (and still not great). Once with that you can set up a CRON job with the whenever
gem to do the data pull once a day.
Upvotes: 2