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....


Declaration:property Scale1X: TScalePropsHoriz;
property Scale2X: TScalePropsHoriz;
property Scale3X: TScalePropsHoriz;
property Scale4X: TScalePropsHoriz;

The properties Scale1X to Scale4X define the form and layout of the four published horizontal scales. They contain the following published sub-properties, most of them being directly related to the TScale class (which actually displays the scale):

Caption: string; Caption of the scale
CaptionPosX: integer; horizontal offset of the caption
CaptionPosY: integer; vertical offset of the caption
CaptionAlignment: TAlignment; alignment of the caption text
CaptionAnchor: TScaleUnitAnchor; anchor of caption text
Center: double; returns the center of the scale
ColorScale: TColor; color of the scale
DateFormat: TDTLabel; format of date and time labels
DecPlaces: integer; number of decimal places used for scale labels
Font: TFont; font of scale labels
Logarithmic: boolean; scale is logarithmic if set TRUE
LabelType: TFigType; kind of label
MinTicks: integer; minimum number of tick marks
MinRange: double; defines the minimum range the x-axis has to span. This property can be used to prevent users from zooming too much into the data. MinRange is set to 10-10, by default.
MouseAction: TMouseActMode; facilitates interactive zooming and panning of the scale. This property may take one of the following values: maNone, maPan, maZoom and maZoomDrag. For details, see TScale.MouseAction.
RangeLow: double; left or bottom value of the scale. If the new value of RangeLow would result in an axis which covers a range smaller than MinRange, RangeHigh is automatically adjusted to span the minimum range as defined by MinRange.
RangeHigh: double; right or top value of the scale. If the new value of RangeHigh would result in an axis which covers a range smaller than MinRange, RangeLow is automatically adjusted to span the minimum range as defined by MinRange.
ShortTicks: boolean; displays short tick marks between scale ticks
ScaleInscript: string; extra text for each text label
property ScaleLocation: TScaleLocationHoriz; controls the location of the scale: slTop displays the scale at the top of the chart, slBottom displays it at the bottom.
ScalePos: integer; distance of the scale axis from the chart margin. A number greater than zero moves the entire scale away from the chart margin (independent of the location of the scale).
UserTickText: string; user defined scale labels
Visible: boolean; controls the visibility of the scale

Hint 1: Please note that RChart supports up to 16 x- and 16 y-axes, which can be accessed by using the properties ScalePropsX and ScalePropsY, respectively. The properties Scale1X to Scale4X are published copies of ScalePropsX[1] to ScalePropsX[4].

Hint 2: The Light Edition of the SDL Suite supports only two layers. Scale3X and Scale4X are therefore not available in the Light Edition.

Example: This property is used in the following example programs (see for downloading the code): curvefit, findcent, geodata, interpol3d, multilinreg, percentile, processc, rch2win, rchdrag, rchfifo, rchmouse, rchmovel, rchzoomp, rcshared, rctstspd, simplepca

Last Update: 2023-Dec-13