LinearGauge

New in version 5.0

LinearGauge ( appearanceConst ;​ thickness ;​ themeID ;​ symbolOffset ;​ scaleLineOffset ;​ majorTickLabelOffset ;​ minorTickLabelOffset ;​ attachTickMarkToScaleEnds )

Argument Type Range Default Note
appearanceConst int 0..127 default
thickness num 0..10000 20% Abs or rel in percent of plot area.
themeID int 0..2 1
symbolOffset num -1000..1000 0
scaleLineOffset num -1000..1000 0
majorTickLabelOffset num -1000..1000 0
minorTickLabelOffset num -1000..1000 0
attachTickMarkToScaleEnds int 0..1 0
Description

The position of a symbol is defined by entering the value in ChartData() . Values for multiple symbols are separated by a semicolon “;”. For example:

ChartData(56;​ /* Symbol1 at 56  */

17.5) /* Symbol2 at 17.5 */

The appearance of the symbol(s) can be controlled by the SymbolStyle() function; the appearance of the symbol labels by the functions LabelTexts() , LabelStyle() , LabelOptions() , LabelBackground() and LabelBackgroundOptions() . By using scale and axis functions the appearance of the scale can be controlled.

Legend and title are not supported in combination with linear meters.

LINEAR_GAUGE_01
1

OpenDrawing(200;​100)

2

ChartData(3.54)

3

LinearGauge(horizontal+label;​

4

30%;​ /* Thickness relative to plot area height. */

5

1;​ /* Theme ID. [0..2]  */

6

-10;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

14) /* Major tick label offset.  */

9

/* Use style functions to control the appearance of the symbol(s). */

10

SymbolStyle(1;​triangleDown;​12;​1;​#D72729)

11

LabelTexts(1;​"|u|")

12

LabelStyle(1;​Arial;​12;​plain;​#D72729)

13

LabelOptions(1;​topCenter;​;​11)

14

/* Use scale and axis functions to control the appearance of the scale. */

15

Scaling(all;​linear;​0;​5;​5;​5)

16

AxisLine(all;​0)

17

AxisMajorTicks(all;​12;​0.25;​#666)

18

AxisMinorTicks(all;​5;​0.25;​#666)

19

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

20

CloseDrawing()

LINEAR_GAUGE_01
LINEAR_GAUGE_02
1

OpenDrawing(200;​100)

2

ChartData(0.54)

3

LinearGauge(horizontal+label;​

4

30% ;​ /* Thickness relative to plot area height. */

5

1;​ /* Theme ID. [0..2]  */

6

10;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

-25) /* Major tick label offset.  */

9

/* Use style functions to control the appearance of the symbol(s). */

10

SymbolStyle(1;​triangleUp;​10;​2;​#D72729)

11

LabelTexts(1;​"|u|")

12

LabelStyle(1;​Arial;​12;​plain;​#D72729)

13

LabelOptions(1;​bottomCenter;​;​01)

14

/* Use scale and axis functions to control the appearance of the scale. */

15

Scaling(all;​linear;​-1;​1;​4;​5)

16

AxisLine(all;​0)

17

AxisMajorTicks(all;​12;​0.25;​#666)

18

AxisMinorTicks(all;​5;​0.25;​#666)

19

AxisMajorTickLabelTexts(all;​"|u|")

20

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

21

CloseDrawing()

LINEAR_GAUGE_02
LINEAR_GAUGE_03
1

OpenDrawing(240;​100)

2

ChartData(0.54)

3

LinearGauge(horizontal;​

4

30%;​ /* Thickness relative to plot area height. */

5

1;​ /* Theme ID. [0..2]  */

6

12;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

-25) /* Major tick label offset.  */

9

/* Use style functions to control the appearance of the symbol(s). */

10

SymbolStyle(1;​triangleUp;​10;​2;​#D72729)

11

LabelTexts(1;​"|u|")

12

LabelStyle(1;​Arial;​12;​plain;​#D72729)

13

LabelOptions(1;​bottomCenter;​;​01)

14

/* Use scale and axis functions to control the appearance of the scale. */

15

Scaling(all;​linear;​-1;​1;​4;​5)

16

AxisLine(all;​0)

17

AxisMajorTicks(all;​12;​0.25;​#666)

18

AxisMinorTicks(all;​5;​0.25;​#666)

19

AxisMajorTickLabelTexts(all;​"|u|")

20

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

21

AddText(100;​74;​"0.54";​Verdana;​12;​bold;​#777;​center;​center;​0;​200)

22

ChartBackground(xy;​#f3f6f2;​0;​0;​;​;​2 2 2;​lightGray)

23

ChartBackgroundOptions(10;​10 20 20 20)

24

CloseDrawing()

LINEAR_GAUGE_03
LINEAR_GAUGE_04
1

OpenDrawing(240;​100)

2

ChartData(0.54)

3

LinearGauge(horizontal;​

4

30%;​ /* Thickness relative to plot area height. */

5

2;​ /* Theme ID. [0..2]  */

6

12;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

-25) /* Major tick label offset.  */

9

/* Use style functions to control the appearance of the symbol(s). */

10

SymbolStyle(1;​triangleUp;​10;​2;​#D72729)

11

/* Use scale and axis functions to control the appearance of the scale. */

12

Scaling(all;​linear;​-1;​1;​4;​5)

13

AxisLine(all;​0)

14

AxisMajorTicks(all;​12;​0.25;​#666)

15

AxisMinorTicks(all;​5;​0.25;​#666)

16

AxisMajorTickLabelTexts(all;​"|u|")

17

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

18

AddText(100;​74;​"0.54";​Verdana;​12;​bold;​#777;​center;​center;​0;​200)

19

ChartBackground(xy;​#f9f7f4;​0;​0;​;​;​2 2 2;​lightGray)

20

ChartBackgroundOptions(10;​10 20 20 20)

21

CloseDrawing()

LINEAR_GAUGE_04
LINEAR_GAUGE_05
1

OpenDrawing(240;​100)

2

ChartData(189;​420)

3

LinearGauge(horizontal+label;​

4

30%;​ /* Thickness relative to plot area height. */

5

2;​ /* Theme ID. [0..2]  */

6

12;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

-26) /* Major tick label offset.  */

9

/* Use style functions to control the appearance of the symbol(s). */

10

SymbolStyle(1;​triangleUp;​10;​2;​#D72729)

11

SymbolStyle(2;​triangleUp;​7;​2;​#666)

12

LabelTexts(all;​"|i0|")

13

LabelStyle(1;​Arial;​12;​plain;​#D72729)

14

LabelStyle(2;​Arial;​8;​plain;​#666)

15

LabelOptions(all;​bottomCenter;​;​00)

16

/* Use scale and axis functions to control the appearance of the scale. */

17

Scaling(all;​linear;​100;​700;​6;​5)

18

AxisLine(all;​0)

19

AxisMajorTicks(all;​12;​0.25;​#666)

20

AxisMinorTicks(all;​5;​0.25;​#666)

21

AxisMajorTickLabelTexts(all;​"|u|")

22

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

23

CloseDrawing()

LINEAR_GAUGE_05
LINEAR_GAUGE_06
1

OpenDrawing(100;​220)

2

ChartData(38)

3

LinearGauge(label+shadow;​

4

30%;​ /* Thickness relative to plot area width. */

5

1;​ /* Theme ID. [0..2]  */

6

12;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

-25) /* Major tick label offset.  */

9

/* Use style functions to control the appearance of the symbol(s). */

10

SymbolStyle(1;​triangleLeft;​10;​2;​#D72729)

11

ShadowStyle(1;​1 1 3)

12

LabelTexts(1;​"|u|")

13

LabelStyle(1;​Arial;​12;​plain;​#D72729)

14

LabelOptions(1;​centerRight;​;​01)

15

/* Use scale and axis functions to control the appearance of the scale. */

16

Scaling(all;​linear;​0;​50;​5;​10)

17

AxisLine(all;​0)

18

AxisMajorTicks(all;​12;​0.25;​#666)

19

AxisMinorTicks(all;​5;​0.25;​#666)

20

AxisMajorTickLabelTexts(all;​"|u|")

21

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

22

ChartBackground(xy;​#f3f6f2;​0;​0;​;​;​2 2 2;​lightGray)

23

ChartBackgroundOptions(10;​15 10)

24

CloseDrawing()

LINEAR_GAUGE_06
LINEAR_GAUGE_07
1

OpenDrawing(100;​200)

2

ChartData(38)

3

LinearGauge(label+shadow;​

4

30%;​ /* Thickness relative to plot area width. */

5

0;​ /* Theme ID. [0..2]  */

6

-12;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

10) /* Major tick label offset.  */

9

/* Use style functions to control the appearance of the symbol(s). */

10

SymbolStyle(1;​triangleRight;​10;​2;​#D72729)

11

ShadowStyle(1;​1 1 3)

12

LabelTexts(1;​"|u|")

13

LabelStyle(1;​Arial;​12;​plain;​#D72729)

14

LabelOptions(1;​centerLeft;​10)

15

/* Use scale and axis functions to control the appearance of the scale. */

16

Scaling(all;​linear;​0;​50;​5;​5)

17

AxisLine(all;​0)

18

AxisMajorTicks(all;​12;​0.25;​#666)

19

AxisMinorTicks(all;​5;​0.25;​#666)

20

AxisMajorTickLabelTexts(all;​"|u|")

21

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

22

ChartBackground(xy;​#f3f6f2;​0;​0;​;​;​2 2 2;​lightGray)

23

ChartBackgroundOptions(10;​10)

24

CloseDrawing()

LINEAR_GAUGE_07
LINEAR_GAUGE_08
1

OpenDrawing(200;​100)

2

ChartData(38)

3

LinearGauge(horizontal+label+shadow;​

4

30%;​ /* Thickness relative to plot area height. */

5

0;​ /* Theme ID. [0..2]  */

6

-12;​ /* Symbol offset.  */

7

0;​ /* Scale line offset.  */

8

10;​ /* Major tick label offset.  */

9

0;​ /* Minor tick label offset.  */

10

1) /* Attach tick mark to scale ends.  */

11

/* Use style functions to control the appearance of the symbol(s). */

12

SymbolStyle(1;​triangleDown;​10;​2;​#D72729)

13

ShadowStyle(1;​1 1 3)

14

LabelTexts(1;​"|u|")

15

LabelStyle(1;​Arial;​12;​plain;​#D72729)

16

LabelOptions(1;​topCenter;​;​10)

17

/* Use scale and axis functions to control the appearance of the scale. */

18

Scaling(all;​linear;​0;​50;​5;​10)

19

AxisLine(all;​0)

20

AxisMajorTicks(all;​12;​0.25;​#666)

21

AxisMinorTicks(all;​5;​0.25;​#666)

22

AxisMajorTickLabelTexts(all;​"|u|")

23

AxisMajorTickLabelStyle(all;​Verdana;​9;​plain;​#666)

24

CloseDrawing()

LINEAR_GAUGE_08
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×