Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts

I am creating a charts pro column report.

The category is a year. The value is some integre.

The color of the column should be green unless the year of the data category is the current year.  In which case the column should be red.

I've tried using conditional style applied to the report element...

but that didn't seem to get "picked up" by the report.

I then put in a conditional expression in the Palette Colors field of the Chart Configuration.

The comparison and application of color works...only it applies the resulting color of the last comparison to all columns.

Any suggestions on how to conditionally color the columns of a charts pro columns chart?

Thanks in advance.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

you won´t get into this without a chart customizer, hava a look for starting here:


in the chart customizer, you could define a static map to set the bar or line color to a specific value. if you need it more dynamically, read your color assignment to categories from a config file or, the better, write it into your database an read it combined with the chart data.

That´s the way I would do it.

Cheers, Thomas


Link to comment
Share on other sites

I am having a similar kind of problem. The conditional color are getting applied when we export it as xls but it does not shows up when we export as xlsx. I am using jasper server 5.0. Everything was working good in 4.0 as we were only exporting xls. Any help is appreciated.




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