简体   繁体   中英

Dynamically update colors of a Google Geochart

I'm using Google Geochart and I would like to dynamically change the color of selected regions without having to redraw the entire chart again (which causes the chart to flicker). Is there a way to do this, and if so, how?

There is way to change the region color of GeoChart dynamically in this VectorWorkz GeoChart . Its enables you to change the color of regions dynamically when its bounded data value changes, this is done by using KO, take a look at this sample and here is the online demo .

As far as I understand it's impossible to change the colors of regions in Geochart dynamically. However I would recommend you to try jVectorMap library, which has a setColors and setValues methods to update data dynamically.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM