"axesCount"

Gets the number of axes.

Synopsis

int axes = shape.axesCount();

Description

Gets the number of axes.

Example

In the following example the axes of the chart are requested. With the help of the function DebugN(this.axesCount()), the result is shown in the Log Viewer. The returned number specifies the amount of axes.

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");
   this.addAxis(0, 25, "");
   this.addAxis(0, 25, "");
   this.addAxis(0, 25, "");
   this.addAxis(0, 25, "");
   DebugN(this.axesCount());
}
Figure 1. The created chart
Figure 2. The Log Viewer returned 4 axes

Assignment

Chart.ewo