How to add a range marker for secondary axis?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
singhtjunior
Posts: 2
Joined: Thu Jul 29, 2004 8:34 pm

How to add a range marker for secondary axis?

Post by singhtjunior » Thu Jul 29, 2004 8:42 pm

Can someone kindly explain how to add a range marker to secondary axis?


chart.getXYPlot().addRangeMarker(valueMaker) adds to the primary axis.

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

Post by david.gilbert » Fri Jul 30, 2004 8:59 am

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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide

Post Reply