Sign in to follow this  
Guest Basundhara Ghosal

dynamic color based on style class

Recommended Posts

Is there a way to dynamically change the fill color of the thermometer gauge by assigning a classname dynamically? My server provides the value and associated classnames at execution time. I am using setData which updates the value nicely (i.e. without flashing) and I want the same for the fill color.

 

 

 

Thanks in advance,

 

Sue

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Sue,

Welcome to FusionCharts forum. :)

Could you please try passing the XML codes with the desired updation, each time you charts get re-rendered?

Hope this helps.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

 

 

 

I'm afraid, as of now, className cannot be associated with the chart.

 

 

 

As an alternative you can retrieve the color from the class and update the color using the real-time capabilities of the chart.

 

 

 

Something like this:

 

&label=11:45&value=23|43|45&color=FF0000|0372AB|FF5904

 

ref. - http://www.fusioncharts.com/widgets/docs/Contents/DSC_Format.html

 

 

 

Looking forward to your reply.

Share this post


Link to post
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
Sign in to follow this