IChart.ExcludeInvisibleSeries

Syntax

ExcludeInvisibleSeries: Boolean;

Description

The ExcludeInvisibleSeries property determines whether it is possible to rebuild a pie chart when excluding series via legend.

Comments

The property is set to False by default.

If the property is set to False, excluding of pie chart series via the legend causes the hidden series to form empty space in the chart when saving pie chart proportions.

If the property is set to True, excluding of pie chart series via the legend causes rebuilding of the chart only by the enabled elements.

Example

Executing the example requires an express report containing a pie chart with enabled legend, and a form containing the following components:

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

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

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    
Var
        Chart : IChart;
    
Begin
        Chart := UiErAnalyzer1.ErAnalyzer.Chart 
As IChart;
        Chart.ExcludeInvisibleSeries := 
True;
    
End Sub Button1OnClick;

 

After executing the example on clicking the Button1 button the pie chart, if series are excluded via the legend, is reconfigured and displays only enabled elements without showing empty space where excluded series were.

See also:

IChart