Jump to content
Changes to the Jaspersoft community edition download ×

how to set the colors for a stacked bar chart


gilberttan

Recommended Posts

Hi,

I am creating a stacked bar chart. I need to set the color for the bottom bar to red and the top bar to green. I use seriesColor to set the colors but the result is not what I expected. Please see attached image for the result.

Please help me on this.

Thanks.

[file name=successFaildProportionReportByDate.jrxml size=3447]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/successFaildProportionReportByDate.jrxml%5B/file] size=247]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/chart.JPG

Post edited by: gilberttan, at: 2007/05/30 06:44

Link to comment
Share on other sites

  • 4 months later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 5 months later...

Hi,

I have the same problem.. I set 3 color in the series.

I expect every bar to contain these colors in the correct order - for example: red,green,gray.

 

The result is not consistent - I may get all three colors,I may get 2 red and one green,or 2 gray and one red etc..

 

Am I missing something ?

 

Thanks

Link to comment
Share on other sites

  • 1 year later...

Yes, you are missing something. The bars that get displayed is based on the data what you display.. If you want to get all three colors in your page you may need to set the data properly and you have to add some conditions in the Category Series.



Post Edited by purushotham at 09/11/2009 03:41
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...