"setItemFillColor"

Used to define the fill color of an item.

Synopsis

void shape.setItemFillColor(int series, int idx, string color)

Parameters

Parameter Description
series number of the series
idx index of the item, starting at 0
color the color, that is set

Description

Used to define the fill color of an item. This function is only possible in the charttypes Donut and DonutBars. All other charttypes use "seriesFillColor".

Example

In this example the fill color of the element with the value 11 from the first series was changed to red.

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.setItemFillColor(0, 1, "{241,0,0}");
}
Figure 1. The fillcolor of the element with the value 11 was changed to red

Assignment

Chart.ewo