Returns the number of series in the chart object.

int object->GetSeriesCount( ) 

Arguments

object
Required. A Chart object.

Return Value

An integer value containing the series count.

PHP Code Sample

The following PHP code illustrates use of the GetSeriesCount method.

// Add 3 series and display the result
$chart->AddSeries();
$chart->AddSeries();
$chart->AddSeries();

$count= $chart->GetSeriesCount();
// count is now equal to 3
print("Number of series in chart= " . count);

See Also

AddSeries Method | SetSeriesValuesFromString Method | SetSeriesValuesFromArray Method | GetSeriesValue Method

Applies To: Chart Object