简体   繁体   中英

JFree chart times series tick unit data summarization

I am using jfree chart to graphically represent data in a time line basis. Now there is a problem where the user can select data on a time stamp basis such as weekly, hourly, daily etc.

Now is there a way in jfree chart which automatically does summarization for us ie if we have daily data and want to view that graph on a monthly basis? I want the data to be summarized on a monthly basis. I tried this using tick unit but it doesn't summarize the data accordingly but simply shows the tick unit.

It would be of great help if there is such a feature in JFree chart.

The traditional approach is to update the model to reflect the chosen interval, but you can use the zoom methods of ChartPanel to achieve a similar effect. In either case, the DateAxis will adjust automatically by default. This example may be useful for experimenting.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM