CustomFormat: String;
The CustomFormat property allows setting custom number format for labels.
This example assumes that there is the Serie object of the IChartSerie type. Labels are to be displayed for this series.
If required, displaying labels of a data series can be implemented by running the following 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 count starts from zero) are displayed in the number format without decimal digits.
See also: