Jump to content
We've recently updated our Privacy Statement, available here ×

Conditional colors to bars in HTML5 charts in Studio


sadakar
Go to solution Solved by ernestoo,

Recommended Posts

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-2015

I 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

  • 2 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 like

series.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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...