I am working on a dynamic data application using JFreeChart and I am having some issues getting the plot to display how I want it.
The chart should be plotting data initially from left to right, but when it initially begins to plot data, the data displays from the right moving to the left.
I believe the problem is with the History of the data (set with maximumItemAge), but even when it is disabled the problem exists.
I was wondering if anyone has any solutions to this, workarounds, or suggestions for fixing this problem.
Thanks!
Programmer with Deadlines
Dynamic TimeSeries Plotting - Left to Right
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I don't think there is an easy way to make this happen. It would be a nice feature to add though.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


If your problem is just that the initial drawing begins from the right (instead of left), maybe it is just as simple a problem as setting the initial X-axis range correctly.
You now probably have initially DateAxis range as
<some starting point> --- Now
What if you change the initial range to
Now -- <some time in the future>
before adding data to the chart?
Mind that I have not tested any of this, but at least in theory this should help.
Or then I am completely off the track and apologize...
You now probably have initially DateAxis range as
<some starting point> --- Now
What if you change the initial range to
Now -- <some time in the future>
before adding data to the chart?
Mind that I have not tested any of this, but at least in theory this should help.
Or then I am completely off the track and apologize...
aznoohwee,
I am working on a dynamic data application using JFreeChart and I am having some issues on displaying it.
Its plotting the data from right to left. I tried by setting initial range with auto-range off, and then added a ChartChangeListener in which i turned on the FixedAutoRange. Even then i am getting the plot moving from right to left.
Can u please send the sample of chartchangelistener in which you are able to plot from left to right.
Regards
Gayathri
I am working on a dynamic data application using JFreeChart and I am having some issues on displaying it.
Its plotting the data from right to left. I tried by setting initial range with auto-range off, and then added a ChartChangeListener in which i turned on the FixedAutoRange. Even then i am getting the plot moving from right to left.
Can u please send the sample of chartchangelistener in which you are able to plot from left to right.
Regards
Gayathri