The requested page is not available for the requested platform. You are viewing the content for Default platform.

Legend

A legend is an element of a map that shows values corresponding to each color.

ChoroplethMap_Legend

Visibility

To display a legend within a map, use the Show Color Legend button in the Color Legend group on the Design ribbon tab of the Choropleth Map Tools contextual tab set.

ChoroplethMap_ShowLegend_Ribbon

Use the MapLegendBase.Visible property to control legend visibility in code. To access the legend, use the MapDashboardItem.Legend property.

Position and Orientation

To specify the legend's position and orientation, select one of the predefined options from the gallery in in the Color Legend group on the Design ribbon tab of the Choropleth Map Tools contextual tab set.

Map_LegendPosition_Ribbon

To specify the legend's position and orientation in code, use the MapLegendBase.Position and MapLegend.Orientation properties, respectively.

See Also