"setSeriesVisible"
Defines, if the given series is visible or invisible.
Synopsis
void shape.setSeriesVisible(int series, bool visible)
Parameters
Parameter | Description |
---|---|
series | number of the series |
visible |
TRUE = visible FALSE = invisible |
Description
Defines if the given series is visible or invisible.
Example
In the following example the series with the name "green" was set invisible. In the fist picture the two series are shown, in the second picture it is seen, that one series was set invisible.
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.setSeriesVisible(0, FALSE);
}