outline to area plot

A free public discussion forum for the JFreeChart class library.

outline to area plot

Postby bhargavi » Tue Jul 19, 2005 10:40 am

Hi,
Iam generating an overlaid chart with xyline and xyarea plots,

i want to get black outline for the area plot


i have tried using
XYItemRenderer.setBaseOutlinePaint(Color.Black);

but din't work out




can anyone give me the code to set the outline

thanku
bhargavi
 

Postby mhilpert » Tue Jul 19, 2005 1:08 pm

Try

Code: Select all
chart.getPlot().setOutlinePaint(Color.red);
using JFreeChart 1.0.14 with JDK 1.7.0_21
mhilpert
 
Posts: 483
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

Postby bhargavi » Tue Jul 19, 2005 1:25 pm

thanku

but that din't solve my problem

actually
i have an overlaid chart with xyline and xyarea plots
i want outline for the area plot

not the overall plot
bhargavi
 

Postby david.gilbert » Tue Jul 19, 2005 10:58 pm

The XYAreaRenderer class has a setOutline(boolean) method.
David Gilbert
JFreeChart Project Leader

:idea: Buy the JFreeChart Developer Guide :idea:
david.gilbert
JFreeChart Project Leader
 
Posts: 10936
Joined: Fri Mar 14, 2003 10:29 am
Location: Annecy

Postby bhargavi » Wed Jul 20, 2005 8:16 am

thank you
but i have tried with that method also
my plot returns XYItemRenderer which can i cast to XYAreaRenderer and then use the method setOutLine(true);

but even this din't work

can tell me if it is the correct way or needs to be changed
bhargavi
 


Return to JFreeChart - General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests