How to set different colors to the bars in stacked bar chart in ireport ?

Posted by Purushotham on Stack Overflow See other posts from Stack Overflow or by Purushotham
Published on 2010-06-09T05:53:34Z Indexed on 2010/06/09 6:02 UTC
Read the original article Hit count: 256

Hi,

I need to set a unique color to each bar in the stacked bar chart. Whatever the color I see in one bar it shouldn't be repeated in any other bar or any other stack.

For example: I have 5 bars in the report. Each bar has 3 different stacks. I want to apply a red related colors to the first bar and its stacks. Second bar should have blue related colors. etc.. It is showed in the attached image. The image shows a very basic requirement what we want. Just created using a normal ms paint. Stacked Bar MS Paint Image

© Stack Overflow or respective owner

Related posts about jfreechart

Related posts about ireport