Emilio

USA DMA maps no longer color correctly

Recommended Posts

Hello,

I've referenced this fiddle of a USA DMA chart over the last few years and it's always displayed the colors correctly.  But now it appears to only be paying attention to one of the colors.  The ones associated with the color objects don't appear to be having an effect.

Did something change with this map recently to break this?

Also, is there a way I can reference older FusionCharts/Maps js files when testing with fiddles?  I only know how to get the latest js files.

Just in case the link doesn't work, attached is the JS portion of the fiddle.

Thanks,

Emilio

usa dma map fiddle js.txt

Share this post


Link to post
Share on other sites

Hi Emilio,

 

The individual "color" objects(child of colorRange object) supports the attributes "minValue" and "maxValue" to define the lower and upper limit of the color range. In your implementation the "value" attribute is used within the color objects, which is not supported. Instead, use the attribute "maxValue" in the color objects,

Please refer to the modified sample fiddle : https://jsfiddle.net/cxekLuw8/3/

Also we would request you to use the latest version(3.13.3-sr.1) as in the above fiddle, and you need to include the usadma.js file to render the map.

 

Thanks,

Akash.

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