Color bar chart , colors need to select from database

HI All,

How can i give color to bar chart , color needs to select from database , please suggest a way .

Is there any expression in jasper to handle this ?

Or please share piece of java code for adding color to bar chart  from database .

a reply is greatly appreciated.

njp's picture
njp
15
Joined: Sep 15 2016 - 11:08pm
Last seen: 5 years 1 day ago

2 Answers:

Colors is a part of styling, so you have to create a style in style tab, then create conditional style for it, and in condition use expression you want.

https://www.google.ca/search?q=jasper+studio+conditional+styling

sergey.vishnevetskiy's picture
Joined: Jan 2 2018 - 10:13am
Last seen: 2 years 10 months ago

Thanks for the reply.

But how can i add the style name in seriesColor tag, its not accepting style name.

njp's picture
njp
15
Joined: Sep 15 2016 - 11:08pm
Last seen: 5 years 1 day ago
Feedback