The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_rchart
Class: TRChart
Declaration: [1] procedure CursorHoriz (y: double);
[2] procedure CursorHoriz (y: integer);

The method CursorHoriz draws a horizontal line across the entire chart at the y-position given by the parameter y. CursorHoriz can be used with two different coordinate systems: version [1] uses the world coordinates (these are the coordinates shown at the axes of the chart), version [2] uses the screen coordinates in pixels. Using screen coordinates (which are declared as integer) has the effect that the line remains at a fixed position even if the chart is panned or zoomed.

The line width may be adjusted by the property LineWidth, the kind of line by the property PenStyle. The color of the voids in dashed lines is determined by the property FillColor.

Hint: In the Light Edition the number of chart elements is restricted to 1000 elements.

Last Update: 2017-Okt-18