Data Tables

Charting different date ranges

3:53 · By Caleb Porzio

Livewire Screencasts

Level up. Big Time.

Instant access to over 8 hours of content

Explore tons of source code and use it in your own apps

Support our lovely project

Yearly

Access all screencasts and source code by subscribing on a yearly basis.

$69
yearly

Lifetime

Pay once, and get access to all future screencasting content. Forever.

$149
Already a GitHub sponsor? Email us for a discount ↗

Now that we have multiple date range increments, we need to update our chart to use different aggregation time increments based on what range was chosen. For example, if "last 7 days" is chosen, we want to aggregate order revenue on a daily basis, rather than the default: monthly.

Share