"setItemExploded"

Defines in the charttypes Donut and DonutBars if an item should be shown shifted outwards.

Synopsis

void shape.setItemExploded(int series, int idx, bool exploded)

Parameters

Parameter Description
series number of the series
idx index of the item, starting at 0
exploded

TRUE = shifted outwards

FALSE = not shifted outwards

Description

Defines if an item is shown „exploded“, which is: moved outwards by the property value "explosionOffset" in pixel. Note that you must take care about the space between Donut rings if exploded items shall be shown in inner rings by setting an appropriate seriesSpacing property value.

Example

In this example the item with the value 2 is shifted outwards by 41 pixel.

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.explosionOffset = 41;
   this.setItemExploded(0, 3, TRUE);
}
Figure 1. The item with the value 2 is shifted outside about 41 pixel

Assignment

Chart.ewo