This demo shows how to color specific map areas using a palette. In the VectorMap widget, a palette defines a range of colors that are used to paint areas. This range is divided into segments using the value assigned to the colorGroups option. Each segment contributes a color into an array of colors.
The map in this demo represents the top 40 countries by population. Map areas are colored according to the percentage of population.