Reputation: 34725
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.
Upvotes: 1
Views: 6508
Reputation: 205785
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.
Upvotes: 2