IChart.ExcludeInvisibleSeries

Fore Syntax

ExcludeInvisibleSeries: Boolean;

Fore.NET 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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those of the Fore example. Use Fore.NET analogs instead of the Fore components.

Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Forms;

...

    Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
    
Var
        Chart : IChart;
    
Begin
        Chart := UiErAnalyzerNet1.ErAnalyzer.ErAnalyzer.Chart 
As IChart;
        Chart.ExcludeInvisibleSeries := 
True;
    
End Sub;

See also:

IChart