"setSeries"

The function "setSeries" is used to change the values of an existing series or to add a new series.

Synopsis

void shape.setSeries(int series, dyn_float values [, dyn_string names])

Parameters

Parameter Description
series number of the series
values values of the items
names optional; names of the items

Description

The function "setSeries" is used to change the values of an existing series or to add a new series with a seriesnumber from seriesCount.

Example

In this example the second series was changed.

main()
{
  dyn_float one;
  one[1] = 20;
  one[2] = 60;
  one[3] = 50;
  one[4] = 10;
  this.addSeries(one);
  this.setSeriesFillColor(0, "{255,181,53}");
  dyn_float two;
  two[1] = 30;
  two[2] = 25;
  two[3] = 15;
  this.addSeries(two);
  this.setSeriesFillColor(1, "{255,78,87}");
  dyn_float two2;
  two2[1] = 40;
  this.setSeries(1, two2);
}
Abbildung 1. Series was changed

Assignment

Chart.ewo