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 DrawTo (x,y: double);
[2] procedure DrawTo (x,y: integer);
[3] procedure DrawTo (x: integer; y: double);
[4] procedure DrawTo (x: double; y: integer);

DrawTo can draw in 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, versions [3] and [4] provide a mixed coordinates mode. Using screen coordinates has the effect that the end of the line remains at a fixed position even if the chart is panned or zoomed.

Note that the cursor position is updated to the position (x,y). The line width may be adjusted by the property LineWidth. The color of the voids in dashed lines is controlled by the property FillColor.

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

Example: This method is used in the following example programs (see for downloading the code): chartpolygons, convexhull, curvefit, duallayer, fft60hz, fft, fdistri, foursynt, ftfilter, geodata, printcht, rch2win, rchfifo, rchmouse, rchzoomp, rcshared, rctstspd, rctextlabel, spline, userspec

Last Update: 2017-Oct-18