ankane / chartkick

Create beautiful JavaScript charts with one line of Ruby
https://chartkick.com
MIT License
6.33k stars 565 forks source link

Add support for limiting the serie to a certain time frame #605

Closed hajee closed 1 year ago

hajee commented 1 year ago

Currently, when querying the rollup, there is no support to limit the output to a specific time frame.

I'd like to be able to, optionally, limit the returned series to a specific time frame.

Rollup.series("New Users", interval: 'hour', time_frame: Date.today.weeks_ago(2)..Date.today)
hajee commented 1 year ago

Sorry wrong repo :-(