Amit
Amit

Reputation: 34725

JFreeChart - Problem in creating moving chart

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

Answers (1)

trashgod
trashgod

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

Related Questions