TiPlotAxis.LabelsPrecision

TiPlotAxis See Also

Specifies the precision of the axis labels.

property LabelsPrecision : Integer;

Description

Use LabelsPrecision to get or set the precision of the axis labels. The actual number of digits shown to the right of the decimal place depends on the setting of the LabelsPrecisionStyle property.

For example, if LabelsPrecision is 1, LabelsPrecisionStyle is set to ipsFixedDecimalPoints, and the value is 40.56 then the label text will be formatted to display "40.6". To show integers only, set LabelsPrecision to 0.

Example

Delphi

iComponent.XAxis[0].LabelsPrecision := 1;

iComponent.YAxis[0].LabelsPrecision := 1;

C++ Builder

iComponent->XAxis[0]->LabelsPrecision = 1;

iComponent->YAxis[0]->LabelsPrecision = 1;

Contents | Index | Previous | Next