sadakar Posted January 21, 2015 Share Posted January 21, 2015 Hi Jaspersoft & Community,I've a requirement to conditionally display colors to bars in HTML-5 charts...Lets say I am entering today date input control... my query will result 12 months data based on today date.. the previous 3 months from the current date & netx 9 months including the current month bars.For ex: 21st Jan 2015 is selected date then the result set would be Oct-2014, Nov-2014, Dec-2014, Jan-2015,Feb-2015,Mar-2015,Apr-2015,May-2015,Jun-2015,July-2015,Aug-2015,Sep-2015I want to apply red color for previous 3 months i.e., for Oct-2014, Nov-2014,Dec-2014 I have to display red in color bars & for the remaining it would be blue in color ..Is it possible to do in Jasper 6.x version studio & server ? Thank you in Advance for any inputs :-)Sadakar Link to comment Share on other sites More sharing options...
Solution ernestoo Posted March 24, 2015 Solution Share Posted March 24, 2015 Very late to answer this but here is an example: https://community.jaspersoft.com/wiki/dynamically-updating-bar-colors-html5-bar-charts Link to comment Share on other sites More sharing options...
sadakar Posted March 24, 2015 Author Share Posted March 24, 2015 Thank you for the WIKI page. I had already gone through it and it was exactly what I'm looking for. Before this I was trying with Advanced properties likeseries.data.fillColor="red" which is applied only 1st marker or bar .. It should apply to all the markers on line chart or to bars in bar chart. .The link is okay but is there any way that we can get it from HTML-5 advanced properties or through functions in it ? Thank you in Advance :-) Link to comment Share on other sites More sharing options...
ernestoo Posted March 27, 2015 Share Posted March 27, 2015 can you post a picture of what you're looking to achieve? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now