Determines the origin of the X scale. |
Synopsis
setValue (string shape, "xOrigin", int orig); |
getValue (string shape, "xOrigin", int &orig); |
shape.xOrigin (int orig); |
Parameters
Parameter |
Description |
shape |
Name of the object |
orig |
BAR_LEFT, BAR_RIGHT and BAR_CENTER |
Description
The origin of the X scale on the X-axis can be specified or read with this attribute. Possible values, which are defined using constants are: left (BAR_LEFT), right (BAR_RIGHT) or in the centre (BAR_CENTER). |
Example |
In this example, the x-axis is scaled as follows: The scale begins on the left ("xOrigin") with 0 ("xCenter") and goes up to 100 ("xRange"). The range is divided into steps of 10 ("xStep") with one decimal place ("xPrec") without grid ("xGrid"). |
main() { shape bt=getShape("BarTrend1"); bt.xOrigin=BAR_LEFT; bt.xCenter=0; bt.xRange=100; bt.xStep=10; bt.xPrec=1; bt.xGrid=TRUE; bt.flush(); // Update bar trend } |
Assignment
Bar trend |
See also
V 3.11 SP1
Copyright