DropLineReferenceLine

DropLineReferenceLine ( seriesIndex ;​ xStart ;​ yStart ;​ xEnd ;​ yEnd ;​ stroke ;​ color ;​ colorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
seriesIndex int 0..10000 all
xStart num -inf..+inf (required)
yStart num -inf..+inf (required)
xEnd num -inf..+inf (required)
yEnd num -inf..+inf (required)
stroke num[] 0..1000 1 Dimension:[pt]
color rgba 0..255 black
colorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

DropLineReferenceLine(1;​0;​0;​10;​20;​;​red)

DropLineReferenceLine(all;​10;​20;​10;​100;​1;​red;​gray)

Description

The DropLineReferenceLine() function serves to define a reference line. The arguments xStart, yStart and xEnd, yEnd define the position of the line. The reference line is designed by using the arguments stroke, color, colorVariant, etc.

DROP_LINE_REFERENCE_LINE_01
1

OpenDrawing(250;​150)

2

ChartData(3 11 18 15 6;​ /* x-values. */

3

2 18 16 4 5) /* y-values. */

4

ScatterChart2D()

5

DropLineStyle(1;​x;​1 2 2;​#4682b4)

6

DropLineReferenceLine(1;​0;​18;​20;​3;​1;​#4682b4)

7

/* Set up styles. */

8

SymbolStyle(1;​circle;​4.5;​1;​#4682b4;​;​white)

9

/* Set up axes. */

10

Scaling(x;​linear;​0;​20)

11

Scaling(y;​linear;​0;​30)

12

AxisLine(all;​0)

13

AxisMajorTicks(all;​0)

14

/* Set up grid. */

15

MajorGridLineWidths(all;​all;​0.25)

16

GridFrame(xy;​0.5;​#888)

17

CloseDrawing()

DROP_LINE_REFERENCE_LINE_01
DROP_LINE_REFERENCE_LINE_02
1

OpenDrawing(250;​150)

2

ChartData( 3 11 18 20 24;​ /* 1st series: x-values. */

3

2 18 16 8 13;​ /* 1st series: y-values. */

4

23 10 15 12 6;​ /* 2nd series: x-values. */

5

3 12 15 5 4) /* 2nd series: y-values. */

6

ScatterChart2D()

7

DropLineStyle(all;​x;​0.25;​black)

8

DropLineReferenceLine(all;​0;​10;​25;​10;​0.5;​#888)

9

/* Set up styles. */

10

SymbolStyle(1;​bullet;​4;​1;​#4682b4;​shaded)

11

SymbolStyle(2;​bullet;​4;​1;​#c002a0;​shaded)

12

/* Set up axes. */

13

AxisLine(all;​0)

14

AxisMajorTicks(all;​0)

15

/* Set up grid. */

16

MajorGridLineWidths(all;​all;​0.25)

17

GridFrame(xy;​0.5;​#888)

18

CloseDrawing()

DROP_LINE_REFERENCE_LINE_02
Scroll to Top