Barchart - Dynamic Colour passed from the database

0

I have a barchart in a report, but I want the colour to be dynamic based on a hex code (or any) which is stored in the source data.   An example where this will be used is for example is the standard colour is "red".  But where the customer wants their own colour scheme this will be their version of red and so on.  Of course I can create different bar charts and fix the colour, but having this passed through from the database will give more flexibility and no need to change the report if a customer wants their own colour.

 

I have seen the use of net.sf.jasperreports.style.backcolor - but I can't see how to apply this when using the barchart object.

markc_74's picture
Joined: Oct 28 2016 - 7:06am
Last seen: 1 month 4 weeks ago

0 Answers:

No answers yet
Feedback
randomness