TiPlotAxis.LegendPrecision
TiPlotAxis
Specifies the precision of the Legend Channel Data Text.
property LegendPrecision : Integer;
Description
Use LegendPrecision to get or set the precision of the Legend Hint Text. The
actual number of digits shown to the right of the decimal place depends on the
setting of the LegendPrecisionStyle property.
For example, if LegendPrecision is 1, LegendPrecisionStyle is set to ipsFixedDecimalPoints, and the value at the current Legend position
is 40.56 then the Legend Channel Data Text will be formatted to display "40.6"
(actual display of one data point, two data points, or a calculated value
depends on the Legend's property settings). To show integers only, set
LegendPrecision to 0.
Note: this property only has effect if LegendUseDefaultFormat is set to FALSE. If LegendUseDefaultFormat is set to TRUE, then the Axis LabelsPrecision 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.
Example
Delphi
iComponent.XAxis[0].LegendPrecision := 1;
iComponent.YAxis[0].LegendPrecision := 1;
C++ Builder
iComponent->XAxis[0]->LegendPrecision = 1;
iComponent->YAxis[0]->LegendPrecision = 1;
Contents | Index | Previous | Next