TiPlotAxis.CursorPrecision
TiPlotAxis
Specifies the precision of the DataCursor Hint Text.
property CursorPrecision : Integer;
Description
Use CursorPrecision to get or set the precision of the DataCursor Hint Text.
The actual number of digits shown to the right of the decimal place depends on
the setting of the CursorPrecisionStyle property.
For example, if CursorPrecision is 1, CursorPrecisionStyle is set to ipsFixedDecimalPoints, and the value at the current cursor position
is 40.56 then the cursor ToolTip text will be formatted to display "40.6"
(actual display of one data point, two data points, or a calculated value depends
on the cursor's property settings). To show integers only, set CursorPrecision
to 0.
Note: this property only has effect if CursorUseDefaultFormat is set to FALSE. If CursorUseDefaultFormat is set to TRUE, then the Axis LabelsPrecision will override this property.
If this is an X-Axis, then this property will only affect X-Values displayed
in the DataCursor Hint Text. If this is a Y-Axis, then only Y-Values will be
affected.
Example
Delphi
iComponent.XAxis[0].CursorPrecision := 1;
iComponent.YAxis[0].CursorPrecision := 1;
C++ Builder
iComponent->XAxis[0]->CursorPrecision = 1;
iComponent->YAxis[0]->CursorPrecision = 1;
Contents | Index | Previous | Next