Color bar chart , colors need to select from database

0

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
9
Joined: Sep 15 2016 - 11:08pm
Last seen: 1 year 4 months ago

2 Answers:

2

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: 3 weeks 1 day ago
0

Thanks for the reply.

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

njp's picture
njp
9
Joined: Sep 15 2016 - 11:08pm
Last seen: 1 year 4 months ago
Feedback
randomness