IChartLabel.TextAngle

Syntax

TextAngle: Double;

Description

The TextAngle property determines a label text rotation angle.

Comments

Available values: 0, 90, and 270.

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, Metabase, Report, Tab system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Report: IPrxReport;
    Chart: IChart;
    Serie: IChartSerieBase;
    CLabel: 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;
    CLabel := Serie.DefaultLabel;
    CLabel.Position := ChartLabelPosition.PeakInside;
    CLabel.TextAngle := 90;
    // Save changes
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, data labels will be set up for the chart. Labels will be displayed inside end of the series and will be rotated 90 degrees.

See also:

IChartLabel