Adds a series to a chart. Creates a new, empty series and place it at the end of the current series list.
void object->AddSeries()
The AddSeries method places the newly created series at the end of the chart object series list. You can retrieve the number of existing series added to the chart object by calling the GetSeriesCount method.
The following PHP code illustrates use of the AddSeries method.
$values_1= array(); $values_2= array(); $values_1[0] = 10; $values_1[1] = 20; $values_1[2] = 30; $values_2[0] = 100; $values_2[1] = 200; $values_2[2] = 300; $chart->AddSeries(); $chart->SetSeriesValuesFromArray(0, $values_1); $chart->AddSeries(); $chart->SetSeriesValuesFromArray(1, $values_2);
GetSeriesCount Method | SetSeriesValuesFromString Method | SetSeriesValuesFromArray Method | GetSeriesValue Method
Applies To: Chart Object