MindFusion.Charting for Silverlight Programmer's Guide
ChartSeries.Title Property
See Also
 






Gets or sets the title of the series.

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

 Syntax

C#  Copy Code

public string Title { get; set; }

Visual Basic  Copy Code

Public Property Title As String

 Property Value

A string value. Default value is an empty string ("").

 Remarks

The property is used by the ChartLegend - each item in the legend is read from the Title property of the respective ChartSeries in the ChartLegend.Series collection.

 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

ChartSeries Members
ChartSeries Class
MindFusion.Charting.Silverlight Namespace