Returns the number of series in the chart object.
int object.GetSeriesCount( )
The following JSP code illustrates use of the GetSeriesCount method.
// Add 2 consecutive series chart.SetSeriesValuesFromString( 0, "34;56;23;76;12" ); chart.SetSeriesValuesFromString( 1, "76;56;34;12;23" ); int count= chart.GetSeriesCount(); // count is equal to 2 out.println( "Number of series in chart= " + count + "<br>" ); // Add another series with series index 4 // (series 2 and 3 remain empty and not displayed) chart.SetSeriesValuesFromString( 4, "56;34;12;23;76" ); count= chart.GetSeriesCount(); // count is now equal to 3 out.println( "Number of series in chart= " + count + "<br>" );
SetSeriesValuesFromString Method | SetSeriesValuesFromArray Method | GetSeriesValue Method
Applies To: Chart Object