Specifies the FMX.RS.ChartPanel.TRSChartAxis object that the chart is bound to for the horizontal (X) axis. This axis controls the range of values that will be drawn for the chart. The chart uses this axis to convert its internal Values into pixel values and vice versa.
You should never directly convert the chart's values to canvas coordinates, use the chart's
HorizontalAxis and
VerticalAxis to call the
AxisToPixel method. A chart's values are consistent with the chart only and have nothing to do with the canvas. These values specify chart graphical elements in floating point format and ignore any visual issues, such as is the chart zoomed. Every chart is bound to a horizontal axis (top or bottom) and vertical axis (left or right) of the chart panel. The axes are responsible for tracking if the view is zoomed, what are the min and max values etc. Call the AxisToPixel method to convert your chart value into the correct canvas value.
Namespace: FMX.RS.ChartPanel
Delphi |
public |
Property Value
Type: TRSChartAxis
The following example shows the DrawLink method of the TRSShapeChart class. This class uses the HorizontalAxis and VerticalAxis to convert its values from its internal format to canvas pixel coordinates:
|
Reference |