How to draw Line chart with 3 different Background Colors

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pramod

How to draw Line chart with 3 different Background Colors

Post by pramod » Tue Oct 29, 2002 12:46 am

Hi
I am trying , line chart with different background colors
catogaryplot object only has setBackground for one color
that is a Paint object, i need to draw three different colors
can any one help
Thanks
Pramod

Dave Gilbert

Re: How to draw Line chart with 3 different Background Color

Post by Dave Gilbert » Tue Oct 29, 2002 8:56 am

You could create a subclass of CategoryPlot and override the drawOutlineAndBackground(...) method (which is inherited from the Plot class).

Regards,

DG.

pramod

Re: How to draw Line chart with 3 different Background Color

Post by pramod » Thu Oct 31, 2002 5:31 pm

Thanks
I got the solution through TexturePaint Object
Thanks
pramod

Locked