Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCharting > RSChartPanel > Classes > TRSCustomChart > Properties

TRSCustomChart.HorizontalAxis Property

Scroll Prev Top Next More

Specifies the RSChartPanel.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: RSChartPanel

Property Value

Type: TRSChartAxis

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb