Legend
A legend is a chart element that identifies chart series and series points (for instance, colored points that correspond to argument values).
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.
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.
To specify the legend’s position and orientation in code, use the following properties.
Gets or sets whether the chart’s legend is placed inside the diagram. | |
Gets or sets the legend position and orientation within a chart diagram. | |
Gets or sets the legend position and orientation outside the chart diagram. |