This sample visualizes the state wise population of India in the year 2011. Color for each state will be applied based on its value.
In this example, you can see how to apply the desired colors for the shapes, if its value is within the specified range using the ColorMapping property. Also, the interactive legend has been placed at the bottom of the map. Tooltip is enabled in this example. To see the tooltip in action, hover the mouse over a shape or tap a shape in touch enabled devices. More information on colormapping can be found in this documentation section.