Add ValueMarker based on secondary axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bztom33
Posts: 35
Joined: Tue Jul 11, 2006 10:35 pm

Add ValueMarker based on secondary axis

Post by bztom33 » Tue Oct 28, 2008 10:16 pm

Hi,

Is there a way to add ValueMarker using the secondary y-axis scale?
Currently, it only allows to use the primary y-axis scale.

Code: Select all

plot.addRangeMarker(myMarker);

mkivinie
Posts: 51
Joined: Wed Jul 06, 2005 8:35 am

Post by mkivinie » Wed Oct 29, 2008 8:01 am

There exists also an API for adding the Marker to the renderer instead of the Plot.

Code: Select all

addRangeMarker(index, Marker, Layer)
Note that the index value here is dataset/renderer index.

bztom33
Posts: 35
Joined: Tue Jul 11, 2006 10:35 pm

Post by bztom33 » Wed Oct 29, 2008 5:04 pm

Thanks for the help.

Code: Select all

plot.addRangeMarker(1,myMarker, Layer.FOREGROUND);

Locked