@CXY (X/Y Coordinates Line with Color)

This macro adds a user-defined line that starts at location x1, y1 and stops at location x2, y2. For charts with a true X-Axis (e.g., Scatter, Bubble, Polar, etc.), x1 and x2 define the value on the X-Axis where the line will be drawn. For bar, line, or area charts, x1 and x2 must be set to a value in the range 0.0 to 1.0 that defines a percentage of the X (or ordinal)-Axis length. Use the nRed, nGreen, and nBlue parameters to specify the RGB color of the line.


@CXY x1 y1 x2 y2 nRed nGreen nBlue


x1; Beginning x-coordinate

y1; Beginning y-coordinate

x2; Ending x-coordinate

y2; Ending y-coordinate

nRed; 0...255 defines the red portion of the RGB color

nGreen; 0...255 defines the green portion of the RGB color

nBlue; 0...255 defines the blue portion of the RGB color


@CXY 0 0 3500 8000 255 0 0




Charts Unlimited supports a maximum of 20 user-defined lines. User-defined lines are drawn with: @CX, @CXY, @CY, @X, @XG, @XSZ, @XSZL, @XSZN, @XSZNL, @XY, @XY_DP2, @Y, @YSZ, @YSZL, @YSZN, & @YSZNL.

Next Macro Previous Macro Return to Alpha List

Next Macro in this Group Previous Macro in this Group Return to Group List