Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)
Specifies the caption for a series defined by its index in a chart.
Public Sub SetSeriesCaption( caption As String, index As Integer )
public void SetSeriesCaption( int index, string caption );
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.
The following code illustrates use of the SetSeriesCaption method.
Dim values= New Double() { 10.5, 12.4, 15.9 } chart.SetSeriesValuesFromArray(0, values) chart.SetSeriesCaption(0, "Turnover in Million dollars")
double[] values= new double[] { 10.5, 12.4, 15.9 }; chart.SetSeriesValuesFromArray(0, values); chart.SetSeriesCaption(0, "Turnover in Million dollars");
GetSeriesCaption Method | GetSeriesValue Method | SeriesCount Property
Applies To: Chart Object