TimeSeries Chart - Graphing issue.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
artipton
Posts: 16
Joined: Thu Jul 03, 2008 6:59 pm

TimeSeries Chart - Graphing issue.

Post by artipton » Tue Sep 15, 2009 12:52 pm

Morning,

I am having an issue with my time series chart. I want it to take in x number of samples and the chart to start scrolling. I set the max number of samples, but it seems to take that number of samples and then instead of the graph scrolling, the graph lines get smaller and smaller... they start disapearing from the left to right...

Does anyone know what I am doing wrong?

Thank you,
Andy

artipton
Posts: 16
Joined: Thu Jul 03, 2008 6:59 pm

Re: TimeSeries Chart - Graphing issue.

Post by artipton » Tue Sep 15, 2009 7:51 pm

... I have tried to set the autoscroll, with no avail. It seems to happen when I set the 'SetMaxumumItemCount()'. I am using a Millisecond period... Also, I am on version 13, the latest).

Any help would be apprecited...

Andy

artipton
Posts: 16
Joined: Thu Jul 03, 2008 6:59 pm

Re: TimeSeries Chart - Graphing issue.

Post by artipton » Tue Sep 15, 2009 8:44 pm

... for some reason, if I clear each time series, I don't see the issue...

TimeSeriesCollection ts = (TimeSeriesCollection) chartPane.getChart().getXYPlot().getDataset(0);
List<TimeSeries> series = ts.getSeries();
int incr = 0;
for ( TimeSeries serie : series )
{
ts.getSeries(incr).clear();
incr++;
}

Andy

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: TimeSeries Chart - Graphing issue.

Post by david.gilbert » Tue Sep 15, 2009 9:47 pm

Your explanation of the issue is not clear enough for me to know what is happening exactly.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked