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.