Specifies the caption for a series defined by its index in a chart.
void object.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 JSP code illustrates use of the SetSeriesCaption method.
float[] values= new float[3]; values[0] = 10.5f; values[1] = 12.4f; values[2] = 15.9f; chart.SetSeriesValuesFromArray(0, values); chart.SetSeriesCaption(0, "Turnover in Million dollars"); chart.LoadStyle("C:\\myStyle.scs"); chart.ExportAsResponse();
GetSeriesCaption Method | GetSeriesValue Method | GetSeriesCount Method
Applies To: Chart Object