Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Specifies the caption for a series defined by its index in a chart.

Visual Basic
Public Sub SetSeriesCaption( caption As String, index As Integer )
C#
public void SetSeriesCaption( int index, string caption );

Arguments

index
An integer value that specifies the zero-based index of the series in the chart object.
caption
A string that specifies the caption.

Remarks

By default, a new data series added to a chart has no caption.

If the index argument refers to a series that does not exist in the chart object, the series is created.

Sample Code

The following code illustrates use of the SetSeriesCaption method.

Visual Basic
Dim values= New Double() { 10.5, 12.4, 15.9 }
chart.SetSeriesValuesFromArray(0, values)

chart.SetSeriesCaption(0, "Turnover in Million dollars")
C#
double[] values= new double[] { 10.5, 12.4, 15.9 };
chart.SetSeriesValuesFromArray(0, values);

chart.SetSeriesCaption(0, "Turnover in Million dollars");

See Also

GetSeriesCaption Method | GetSeriesValue Method | SeriesCount Property

Applies To: Chart Object