Selecting Multiple Areas Map
In this demo we enable users to select multiple countries on a map.
Key implementation details
All you need to do to enable this behavior is to set toggleKey
on the map polygon template to active
. This makes the chart toggle active
field on the country polygon between true
and false
. Then we just need to set the desired fill color for the active
state.