ExcludeInvisibleSeries: Boolean;
ExcludeInvisibleSeries: Boolean;
The ExcludeInvisibleSeries property determines whether it is possible to rebuild a pie chart when excluding series via legend.
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.
Executing the example requires an express report containing a pie chart with enabled legend, and a form containing the following components:
The Button1 button.
ChartBox named ChartBox1, the Source property must be configured for the UiErAnalyzer1 data source.
UiErAnalyzer named UiErAnalyzer1 that is a data source for ChartBox1. The Object property must be configured to express report, the Active property must be set to True.
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.
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: