TiPlotAxis.LegendPrecisionStyle

TiPlotAxis

Specifies how the LegendPrecision property is interpreted when formatting the Legend Hint Text.

type TiPrecisionStyle = (ipsSignificantDigits, ipsFixedDecimalPoints);

property LegendPrecisionStyle : TiPrecisionStyle;

Description

Use LegendPrecisionStyle to specify how the LegendPrecision property is interpreted when formatting Legend Hint Text.

When LegendPrecisionStyle is set to ipsSignificantDigits, the number of digits to the right of the decimal point is automatically calculated to ensure that the span of the values will show enough significant digits.

Note: this property only has effect if LegendUseDefaultFormat is set to FALSE. If LegendUseDefaultFormat is set to TRUE, then the Axis LabelsPrecisionStyle will override this property.

If this is an X-Axis, then this property will only affect Channel X-Values displayed in the Legend. If this is an Y-Axis, then only Y-Values will be affected.

For Example:

LegendPrecisionStyle = 3

LegendPrecisionStyle = ipsSignificantDigits

Span = 50

------------------------------------------------------------------------------------------------------------------

Number of digits shown to the right of the decimal point = 1

These are the possible values:

Value
Meaning
ipsSignificantDigits
Precision property specifies the number of significant digits.
ipsFixedDecimalPoints
Precision property specifies the number of digits to the right of the decimal point.

Example

Delphi

iComponent.XAxis[0].LegendPrecisionStyle := ipsSignificantDigits;

iComponent.YAxis[0].LegendPrecisionStyle := ipsSignificantDigits;

C++ Builder

iComponent->XAxis[0]->LegendPrecisionStyle = ipsSignificantDigits;

iComponent->YAxis[0]->LegendPrecisionStyle = ipsSignificantDigits;

Contents | Index | Previous | Next