Sign in to follow this  
Shokz

Change Country Color

Recommended Posts

Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

First of all, we would like to thank you for showing interest in FusionCharts.

 

Please find a sample workaround attached for your reference.

 

Hope this helps.smile.gif

HighlightEnitityOnClick2.zip

Share this post


Link to post
Share on other sites

Hello Angshu,

 

thanks for the code, adapted it for my application and it worked, but the color does notchange because I have a color value declared before.

 

Would make the color of the entity is the main color, replacing the min and max color value?

 

Hugs

Edited by Shokz

Share this post


Link to post
Share on other sites

Hi,

 

You would need to replace the pre declared color in the respective <entity> element with new color and then pass the new XML to the map. This is what is done by the sample. You might be facing duplicate attribute where the first declared attribute is getting applied.

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