"setItemFillType"
Used to define the fill type of an item.
Synopsis
void shape.setItemFillType(int series, int idx, string type)
Parameters
Parameter | Description |
---|---|
series | number of the series |
idx | the index of the item, starting at 0 |
type | fill type |
Description
Used to define the fill type of an item. This function is only possible in the charttypes Donut and DonutBars. All other charttypes use "seriesFillType".
Example
In the following, one element is given a cross hatching. In this case, the element with number 3 from the first series was chosen, which has the value 2. That means, that the element number 3 is actually not one[3], because the index of items starts at 0 and so one[4] is used.
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.setItemFillType(0, 3, "[hatch,[cross,10,horizontal]]");
}
