"getItemValue"

Returns the value of an item within a series.

Synopsis

float shape.getItemValue(int series, int idx)

Parameters

Parameter Description
series series
idx index

Description

Returns the value of an item within a series.

Example

At first, a chart is created.

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");
}

Now a Push Button and a list are created. A clicked-script is created on the Push Button, in order to write the value on click into the list.

main()
{
  float two = Chart_ewo1.getItemValue(1, 2);
  SELECTION_LIST2.items = two;
}
Figure 1. through a click on the Push Button, the whished value is shown in the list

Assignment

Chart.ewo