'Today' line at the centre of the chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
snkm007
Posts: 24
Joined: Tue Oct 16, 2007 1:52 pm

'Today' line at the centre of the chart

Post by snkm007 » Mon Nov 26, 2007 12:24 pm

Hello All,

Using plot.addRangeMarker(currentDate) where currentDate is an instance of ValueMarker draws the vertical line corresponding to the the current date or 'Today' line in the plot.

Now, if I want to display the 'Today' line at the centre of the chart, irrespective of the data that's being populated in the chart, how do I do that, I mean,

- Is there some API for this?
- Has it to do with the Scrollable Horizontable Bar concept in the pane, i.e.,
usng some Swing/AWT APIs?

Thanks,
SNK

Locked