"setSeriesStretch"

The "stretch"-property is only used in the charttypes Donut and DonutBars and defines a factor for the width of the rings in relation to each other.

Synopsis

void shape.setSeriesStretch(int series, int stretch)

Parameters

Parameter Description
series number of the series
stretch factor for the width of the rings

Description

The "stretch"-property is only used in the charttypes Donut and DonutBars and defines a factor for the width of the rings in relation to each other, e.g. 3 means 3 times as wide as the other ring which has factor 1.

Example

In this example, the factor for the width of the rings in relation to each other is 3, therefor the series 0 is three times as wide as the series 1.

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;
   this.addSeries(two);
   this.setSeriesFillColor(1, "{52,225,255}");
   this.setSeriesName(1, "Blue");
   this.setSeriesName(0, "Green");
   this.setSeriesStretch(0, 3);
}
Abbildung 1. The factor for the width of the rings in relation to each other is 3

Assignment

Chart.ewo