"curveScalePosition", "curveScalePositionX"

Sets the scale position of a trend curve.

Synopsis

setValue(string shape, "curveScalePosition", string curve, int position);

getValue(string shape, "curveScalePosition", string curve, int position);

shape.curveScalePosition(string curve, int position);

Parameters

Parameter Description
shape Name of the object (for example, Trend1)
curve Name of the curve
position

The scale position (constants):

const int SCALE_BOTTOM = 0

const int SCALE_TOP = 1

const int SCALE_LEFT = 2

const int SCALE_RIGHT = 3

Description

Sets the scale position of a trend curve.

Example

The following example sets the scale position of the trend curve to 3 (right)

main()
{
  int pos = 3;
  //Set scale position to "right"
  TREND1.curveScalePosition("#1_1",pos);
  TREND1.curveScalePosition("#2_1",pos);
  int pos1;
  getValue("TREND1","curveScalePosition","#1_1",pos1);
  DebugN("SCALE POSITION",pos1);
}
Abbildung 1. The Scale Positions of the Trend Curves were set to 3 (right)

Assignment

Trend