CustomFormat: String;
The CustomFormat property enables the user to set custom number format for labels.
This example assumes that there is the Serie object of the IChartSerie type. Labels must be displayed for this series.
If required, displaying labels of a data series can be implemented by executed the command: "Serie.LabelsEnabled := True;"
Sub Custom;
Var
Serie : IChartSerie;
Begin
Serie.Label(2).CustomFormat := "0";
End Sub Custom;
After executing the example values on the third level (level numbering starts with zero) are displayed in the number format without decimal places.
See also: