"isSeriesVisible"

Checks if the current series is visible or not.

Synopsis

bool shape.isSeriesVisible(int series)

Parameters

Parameter Description
series number of the requested series

Description

Checks, if the current series is visible or not.

Example

In this example the series with the number 1 was set invisible and afterwards requested with the function "DebugN(this.isSeriesVisible(1))", if the series is visible. The result is shown in the Log Viewer. FALSE means that the series is invisible and TRUE as a return value means, that the series is visible.

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;
   two[4] = 13;
   this.addSeries(two);
   this.setSeriesFillColor(1, "{52,225,255}");
   this.setSeriesName(1, "Blue");
   this.setSeriesName(0, "Green");
   this.setSeriesVisible(1, FALSE);
   DebugN(this.isSeriesVisible(1));
}
Abbildung 1. The series 1 was set invisible
Abbildung 2. The Log Viewer returns 0, so invisible

Assignment

Chart.ewo