IChartSerieBase.Visible

Syntax

Visible: Boolean;

Description

The Visible property determines whether a data series is visible.

Comments

If the property is set to True, the series is displayed in the graph, if the property is set to False, the series is not displayed.

Example

To execute this example you need a form for a button named Button1, and the UiErAnalyzer component named UiErAnalyzer1 that is used as a data source for the ChartBox component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

ErAnalyzer: IEaxAnalyzer;

EaxChart: IEaxChart;

Chart: IChart;

Series: IChartSeries;

ChartSerie: IChartSerie;

Begin

ErAnalyzer := UiErAnalyzer1.ErAnalyzer;

EaxChart := ErAnalyzer.Chart;

Chart := EaxChart.Chart;

Series := Chart.Series;

ChartSerie := Series.Item(0);

ChartSerie.Visible := False;

End Sub Button1OnClick;

Executing the example will hide the first chart data series.

See also:

IChartSerieBase