Visible: Boolean;
The Visible property determines whether the data series is visible.
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.
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: