Skip to main content

Legend

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

ScatterChart_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 group on the Design ribbon tab of the Scatter Chart Tools contextual tab set.

Charts_Legend_ShowLegendButton

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

Position and Orientation

To specify the legend’s position and orientation, select one of the predefined options from the gallery in the Legend group on the Design ribbon tab of the Scatter 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.