"setSeriesName"

Used to define a name for the whole series.

Synopsis

void shape.setSeriesName(int series, string name)

Parameters

Parameter Description
series number of the series
name name of the series

Description

Used to define a name for the whole series. The names are shown in all charttypes in the legend, but Donut and DonutBars.

Example

In this example the names of the series are set to "Red" and "Orange".

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}");
  this.setSeriesName(1, "Red");
  this.setSeriesName(0, "Orange");
}
Abbildung 1. Series with changed names

Assignment

Chart.ewo