Jump to content
We've recently updated our Privacy Statement, available here ×

Aggregation in Time-Series Charts


moodywoody

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

you can create a group with an expression like:

new Integer( $V{REPORT_COUNT}.intValue() / 6 )

This will create a new group every 6 records (I assume you have one record per hour).

Add a variable that calculates the average of your hourly value (calculation type Average, reset type: your group).

Now in your chart dataset, set as increment type: your group. In this way the data collected for the chart is one value for each group. Which value? Well, you should use your variable with the average value for the 6 hours.

Hope it is clear enough.

Giulio



Post Edited by Giulio Toffoli at 04/03/09 06:00
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...