dirk.diels Posted April 12, 2019 Share Posted April 12, 2019 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 : 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 More sharing options...
dirk.diels Posted April 15, 2019 Author Share Posted April 15, 2019 I found what caused the problem : when the nrofrecords for a category/colour = 0 then a record for that combination is still needed in the query. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now