Afternoon,
I'm having a hard time doing two things with value markers, I'm hoping someone can point me in the right direction:
1) On an XYPlot with two range axes, I'm trying to add a valuemarker to the second range axis, but I can't figure out what combination of UI elements to call; the only "addRangerMarker" methods available don't appear to include an axis to reference.
2) On the same plot, I've replaced the X axis with a DateAxis. I'm trying to put a marker on that axis, too, but so far have not been able to figure out how do that at all. The series I'm using is a TimeSeries using org.jfree.data.time.Month class, and I'd like to put a marker on a particular Month.
Thanks!
Gary
Two questions about value markers
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Two questions about value markers
For (1), you should use this method and specify the index of a dataset that is mapped to the axis you want the marker to apply to:
http://www.jfree.org/jfreechart/api/jav ... .ui.Layer)
For (2), you need to specify the value of the marker in milliseconds since 1-Jan-1970 (you could create an instance of the required Month then call the getMiddleMillisecond() method).
http://www.jfree.org/jfreechart/api/jav ... .ui.Layer)
For (2), you need to specify the value of the marker in milliseconds since 1-Jan-1970 (you could create an instance of the required Month then call the getMiddleMillisecond() method).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: Two questions about value markers
That's perfect, thank-you.
Gary
Gary