"setItemValue"

Used to set the value of an item within a series.

Synopsis

void shape.setItemValue(int series, int idx, float value)

Parameters

Parameter Description
series number of the series
idx Index of the item. Starting at 0.
value value, which should be set

Description

Used to set the value of an item within a series.

Example

In this example the last value of the first series (one[4] = 2) was set to 5.

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.setItemValue(0, 3, 5);
}
Figure 1. The value 2 was changed to 5

Assignment

Chart.ewo