Can someone kindly explain how to add a range marker to secondary axis?
chart.getXYPlot().addRangeMarker(valueMaker) adds to the primary axis.
How to add a range marker for secondary axis?
-
- Posts: 2
- Joined: Thu Jul 29, 2004 8:34 pm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Use this method:
http://www.jfree.org/jfreechart/javadoc ... .ui.Layer)
It should add the marker against whichever axis the specified renderer/dataset is mapped to.
http://www.jfree.org/jfreechart/javadoc ... .ui.Layer)
It should add the marker against whichever axis the specified renderer/dataset is mapped to.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

