Background for a Categorie

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

Background for a Categorie

Post by Markus » Tue Oct 01, 2002 11:36 am

Hi,

could someone tell me how to set the backgroundcolor for a categorie in a 3D bar-chart ?

Thank you

David Gilbert

Re: Background for a Categorie

Post by David Gilbert » Tue Oct 01, 2002 11:25 pm

I'm not sure what you mean by the background color for a category.

Regards,

DG.

Markus

Re: Background for a Categorie

Post by Markus » Wed Oct 02, 2002 8:21 am

So i describe the chart ...

The bar shows how much a branch office has sold of a produkt for the last 4 years. so the x-axis shows the years, and the y-axis the sales. Each year has a group of two bars, the amount the branch office has sold and the average amount simmilar branch offices have sold. A further information i'd like to show is, to which categorie (very small, small, big ...) this branch office belongs over the years. Therefore i would like to show behind the bars a color identifying this categorie. So the chartbackground for the year 1998, should be yellow, for 1998 orange ... and so on.

Regards
Markus

Markus

Re: Background for a Categorie

Post by Markus » Wed Oct 09, 2002 3:09 pm

does really no one has any idea ?

Markus

Dave Gilbert

Re: Background for a Categorie

Post by Dave Gilbert » Wed Oct 09, 2002 5:35 pm

You could try subclassing the VerticalBarRenderer class, and overriding the drawPlotBackground method.

Regards,

DG

Locked