Removing/moving a value marker

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
leo77
Posts: 9
Joined: Wed May 23, 2007 7:37 pm
Location: Brazil (Porto Alegre, RS)
Contact:

Removing/moving a value marker

Post by leo77 » Tue Jun 05, 2007 8:59 pm

Hi

my chart (inspired on BarChart3DDemo4) has two value markers (range Markers), and the user should be able to disable the markers or change the values that the value markers are set up,

How do I remove the value marker from the chart (since the remove, removeAll and clear methods are unsupported on the Collection plot1.getRangeMarkers(Layer.BACKGROUND);)? And is there a way to move a marker to another value or I have to create a new one to change the value it marks?[/i]
Leo

leo77
Posts: 9
Joined: Wed May 23, 2007 7:37 pm
Location: Brazil (Porto Alegre, RS)
Contact:

Post by leo77 » Wed Jun 06, 2007 3:20 pm

found the solution, do not need help anymore

Code: Select all

plot.clearRangeMarkers();
Leo

Locked