Jump to content
We've recently updated our Privacy Statement, available here ×

Colors in Stacked bar chart


dirk.diels

Recommended Posts

I am using Jaspersoft Studio version 6.3.2.final using JasperReports Library version 6.3.2 (Community Edition).

I have a weird thing happening with the colors in a stacked bar chart : between 2 runs of the report it happens that the colors in the stacked bars swap around or 1 color swallows one of the other colors. And the next I run it it either runs correctly again (or not). There seems to be no apparent reason for this behaviour (or I can't find one at least), it is just random. 

The query I use is as follows : select category, color, nrofrecords from <table> group by category, color order by category, color. Category can have 10 values maximum, color only 3 (red-orange-green).

When it runs correctly it looks like this : stacked_bar_chart.jpg.c07e0dbe4d180be4dfa4a9d30bae8db0.jpg

But when it goes wrong red and orange or red and green are switched around or green swallows orange or any other combination occurs.

FYI : x axis = category, y axis is nrofrecords and series = color

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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...