Legend

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

Charts_Legend

This topic describes how to customize various legend settings.

Visibility

You can specify whether or not a chart should display a legend.

In the Designer, use the Show Legend button in the Legend section of the Design Ribbon tab.

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.

Charts_Legend_PositionAndOrientationGallery

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

ChartLegend.IsInsideDiagram

Gets or sets whether or not 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.