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

Iam generating an overlaid chart with xyline and xyarea plots,

i want to get black outline for the area plot

i have tried using

but din't work out

can anyone give me the code to set the outline


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


Code: Select all
using JFreeChart 1.0.15 with JDK 1.7.0_25
Posts: 493
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

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


but that din't solve my problem

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

not the overall plot

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

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

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
JFreeChart Project Leader
Posts: 11445
Joined: Fri Mar 14, 2003 10:29 am

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

Return to JFreeChart - General

Who is online

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