IVZChartSerie.Selected

Syntax

Selected: Boolean;

Description

The Selected property selects a data series.

Example

Executing the example requires that the repository contains an express report with a bubble chart.

Place on the form the following components: Button, UiErAnalyzer, EaxBubbleChartBox, EditBox named Button1, UiErAnalyzer1, EaxBubbleChartBox1, EditBox1, respectively.

Set additional properties:

Add links to the Express, Forms, Visualizators system assemblies.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    BCSource: IEaxBubbleChartSource;
    EaxBC: IEaxBubbleChart;
    BubbleChart: IVZBubbleChart;
    Serie: IVZChartSerie;
    Series: IVZChartSeries;
    Count, Index, i: Integer;
Begin
    
// Get bubble chart
    BCSource := EaxBubbleChartBox1.Source;
    EaxBC := BCSource.GetBubbleChart;
    BubbleChart := EaxBC.BubbleChart;
    
// Get bubble chart data series
    Series := BubbleChart.Series;
    Count := Series.Count;
    
// Remove selection if it has been already set
    For i := 0 To Count - 1 Do
        Serie := Series.Item(i);
        
If Serie.Selected Then
            Serie.Selected := 
False
        
End If;
    
End For;        
    
// Set data series index
    Index := Integer.Parse(EditBox1.Text);
    Serie := Series.Item(Index - 
1);
    
// Select the specified data series
    Serie.Selected := True;
    
// Refresh bubble chart
    EaxBC.Refresh;
End Sub Button1OnClick;

After executing the example click the bubble chart area with the main mouse button, set data series index in the EditBox component, and click the Select button. After this, the data series with the specified index will be selected, for example:

See also:

IVZChartSerie