MindFusion.Charting for Silverlight Programmer's Guide
ChartLegend.Series Property
See Also
 






Gets or sets the ChartSeriesCollection for the legend.

Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight

 Syntax

C#  Copy Code

public ChartSeriesCollection Series { get; set; }

Visual Basic  Copy Code

Public Property Series As ChartSeriesCollection

 Property Value

An empty ChartSeriesCollection.

 Remarks

Each label for the legend is taken from ChartSeries.Title property.

 Example

The following example adds a ChartLegend to a line chart - the labels and brushes for the legend are taken from the series of the chart.

C#  Copy Code
ChartLegend legend = new ChartLegend();
legend.Series = lineChart1.Series;
LayoutPanel.SetDock(legend, Dock.Left);
lineChart1.Legends.Add(legend);
Visual Basic  Copy Code
Dim legend As ChartLegend = New ChartLegend
legend.Series = lineChart1.Series
LayoutPanel.SetDock(legend, Dock.Left)
lineChart1.Legends.Add(legend)

 See Also

ChartLegend Members
ChartLegend Class
MindFusion.Charting.Silverlight Namespace