How do you use the drawDomainMarker??? HELP!! :o

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
am
Posts: 22
Joined: Mon May 09, 2005 4:56 pm

How do you use the drawDomainMarker??? HELP!! :o

Post by am » Tue May 17, 2005 9:57 am

There is an example XYSeriesDemo3 but i do not have access to the source, i just wanted to know if anyone knows of how to use this range highlighter???

Thanks in advance

:P

am
Posts: 22
Joined: Mon May 09, 2005 4:56 pm

hello does anyone know the answer to this???

Post by am » Thu May 26, 2005 9:25 am

:cry:

DOES ANY ONE KNOW HOW TO DO THIS????

:cry:

andromeda

RE:hello does anyone know the answer to this???

Post by andromeda » Thu May 26, 2005 1:34 pm

JFreeChart chart = ChartFactory.createXYBarChart(
"Sales Progress",
"Year",
false,
"Sales",
dataset,
PlotOrientation.VERTICAL,
true,
true,
false
);
XYPlot plot = (XYPlot) chart.getPlot();
IntervalMarker target = new IntervalMarker(400.0, 700.0);
target.setLabel("Target Range");
target.setLabelFont(new Font("Arial", Font.ITALIC, 11));
target.setLabelAnchor(RectangleAnchor.LEFT);
target.setLabelTextAnchor(TextAnchor.CENTER_LEFT);
target.setPaint(new Color(222, 222, 255, 128));
plot.addRangeMarker(target, Layer.BACKGROUND); 8)

am
Posts: 22
Joined: Mon May 09, 2005 4:56 pm

Thanks

Post by am » Thu May 26, 2005 2:36 pm

:wink: :lol: :P :D
THANKS that is grrreat.. it works now.. yeah .. cheers

Locked