JFreeChart - Problem in creating moving chart

孤街浪徒 提交于 2019-11-26 11:33:31

问题


I am using JFreeChart in my java application.

Problem

I want to plot a XYAreaChart whose domain axis (x-axis) should scroll horizontally automatically when we start plotting the data.

I saw the same thing in TimeSeriesCharts but I don\'t want any timeSeriesChart. I just want the scrolling x-axis.


回答1:


You'll need to create your own SlidingXYDataset that implements XYDataset in a manner similar to how SlidingCategoryDataset implements CategoryDataset.

Addendum: As noted in a comment, a typical implementation can be found here.



来源:https://stackoverflow.com/questions/5367222/jfreechart-problem-in-creating-moving-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!