JFree图表时间序列刻度单位数据汇总

发布于 2024-12-23 06:48:00 字数 213 浏览 4 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏爱你一生 2024-12-30 06:48:00

传统的方法是更新模型以反映所选的间隔,但您可以使用 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, the DateAxis will adjust automatically by default. This example may be useful for experimenting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文