Skip to main content

Legend

A legend is a chart element that identifies chart series and series points (for instance, colored points that correspond to argument values).

Charts_Legend

This topic describes how to customize various legend settings.

Visibility

You can specify whether a chart should display a legend.

In the Designer, use the Show Legend button in the Legend section of the Design Ribbon tab of the Chart Tools contextual tab set.

Charts_Legend_ShowLegendButton

In code, use the ChartLegend.Visible property. To access the legend, use the ChartDashboardItem.Legend property.

Position and Orientation

To specify the legend’s position and orientation, select one of the predefined options from the gallery in the Design Ribbon tab of the Chart Tools contextual tab set.

Charts_Legend_PositionAndOrientationGallery

To specify the legend’s position and orientation in code, use the following properties.

ChartLegend.IsInsideDiagram

Gets or sets whether the chart’s legend is placed inside the diagram.

ChartLegend.InsidePosition

Gets or sets the legend position and orientation within a chart diagram.

ChartLegend.OutsidePosition

Gets or sets the legend position and orientation outside the chart diagram.