IChartLabel.HideOnIntersect

Syntax

HideOnIntersect: Boolean;

Description

The HideOnIntersect property determines whether a label will be hidden in case of intersecting with another label.

Comments

Available values:

NOTE. The setting is available only for default series data labels.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. A chart with the PrxChart1 identifier is created in the report.

Add links to the Chart, Drawing, Metabase, Report, Tab system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Report: IPrxReport;
    Chart: IChart;
    Serie: IChartSerieBase;
    SLabel: IChartLabel;
Begin
    Mb := MetabaseClass.Active;
    Report := Mb.ItemById(
"REPORT").Edit As IPrxReport;
    Chart := (Report.ActiveSheet 
As IPrxTable).TabSheet.Objects.Object("PrxChart1").Extension As IChart;
    
// Default series settings
    Serie := Chart.Series.DefaultSerie;
    
// Label settings
    Serie.LabelsEnabled := True;
    SLabel := Serie.DefaultLabel;
    SLabel.Type := ChartLabelType.Simple;
    SLabel.Position := ChartLabelPosition.BaseInside;
    SLabel.CustomFormat := 
"0,00";
    SLabel.FontColor := GxColor.FromKnownColor(GxKnownColor.Black);
    SLabel.HideOnIntersect := 
False;
    
// Save changes
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, data labels will be set up for the chart. The labels will be displayed bottom inside, data format and color will be set for them. Labels will not be hidden if they are intersected.

See also:

IChartLabel