Gets or sets the title of the series.
Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight
C#
![]() |
---|
public string Title { get; set; } |
Visual Basic
![]() |
---|
Public Property Title As String |
A string value. Default value is an empty string ("").
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.
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#
![]() |
---|
ChartLegend legend = new ChartLegend(); legend.Series = lineChart1.Series; LayoutPanel.SetDock(legend, Dock.Left); lineChart1.Legends.Add(legend); |
Visual Basic
![]() |
---|
Dim legend As ChartLegend = New ChartLegend legend.Series = lineChart1.Series LayoutPanel.SetDock(legend, Dock.Left) lineChart1.Legends.Add(legend) |