"seriesCount"

Gets the number of the series.

Synopsis

int count = shape.seriesCount();

Description

Gets the number of the series.

Example

In the following example was requested, how many series exist. The Log Viewer shows, that two series exist.

main()
{
   dyn_float one;
   one[1] = 9;
   one[2] = 11;
   one[3] = 20;
   one[4] = 2;
   this.addSeries(one);
   this.setSeriesFillColor(0, "{180,255,170}");
   dyn_float two;
   two[1] = 1;
   two[2] = 14;
   two[3] = 15;
   two[4] = 13;
   this.addSeries(two);
   this.setSeriesFillColor(1, "{52,225,255}");
   this.setSeriesName(1, "Blue");
   this.setSeriesName(0, "Green");
   DebugN(this.seriesCount());
}
Figure 1. Two series are created
Figure 2. The Log Viewer shows, that two series exist

Assignment

Chart.ewo