This example demonstrates switching between different intervals of aggregation over time.
You can supply your own data source with query string parameters:
average
total