"setAxis"

The values of an axis can be changed or a new axis can be added.

Synopsis

void shape.setAxis(int axis, float min, float max, [,string label]);

Parameters

Parameter Description
axis the axis, that should be changed or added
min the new minimum value
max the new maximum value
label the label of the axes (optional)

Description

The vaules of an axis can be changed or a new one can be added (if axis is axisCount).

Example

In the following example a new axis was added and named "new".

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, "");
   this.setAxis(4, 0, 25, "new");
}
Abbildung 1. A fifth axis was added and named

Assignment

Chart.ewo