Color bar chart , colors need to select from database

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

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
5
Joined: Sep 15 2016 - 11:08pm
Last seen: 4 years 3 months 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 1 month 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
5
Joined: Sep 15 2016 - 11:08pm
Last seen: 4 years 3 months ago
Feedback
randomness