JFree图表时间序列刻度单位数据汇总
我正在使用 jfree 图表以图形方式表示时间线基础上的数据。现在存在一个问题,用户可以根据时间戳选择数据,例如每周、每小时、每天等。
现在 jfree 图表中有一种方法可以自动为我们进行汇总,即如果我们有每日数据并想要查看该数据每月图表?我希望每月汇总数据。我尝试使用刻度单位,但它没有相应地汇总数据,而只是显示刻度单位。
如果JFree图表中有这样的功能,那将会有很大的帮助。
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 i.e 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
传统的方法是更新模型以反映所选的间隔,但您可以使用
ChartPanel
来实现类似的效果。无论哪种情况,DateAxis
都会默认自动调整。这个示例可能对实验有用。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, theDateAxis
will adjust automatically by default. This example may be useful for experimenting.