Symbols

In xmCHART 5 a total of 126 symbols organized in 8 categories are available for the following functions:

 
Circles
Symbol Palette Circles
Squares
Symbol Palette Squares
Diamonds
Symbol Palette Diamonds
Triangles
Symbol Palette Triangles
Spokes
Symbol Palette Spokes
Stars
Symbol Palette Stars
Bars
Symbol Palette Bars

In addition, for function AddArrowExt(), the following eight arrowhead symbols are available.

 
Arrows  Only available for function AddArrowExt()
Symbol Palette Arrows

As an option, symbols can be completely suppressed by symbol type = none. For example: SymbolStyle(2;​none)

 
Examples
EXAMPLE_01
1

OpenDrawing(450;​60)

2

AddSymbol( 25;​30;​spokes4;​16;​3.5;​153 89 91;​solid;​;​;​0 0 2)

3

AddSymbol( 75;​30;​triangleUpHalfRight;​16;​2;​110 110 110;​shaded;​;​;​0 0 2)

4

AddSymbol(125;​30;​squareHalfBottom;​16;​2;​150 120 90;​shaded;​;​;​1 1 2)

5

AddSymbol(175;​30;​diamondHalfRight;​16;​2;​90 120 90;​shaded;​;​;​1 1 2)

6

AddSymbol(225;​30;​star3;​16;​2;​86 111 145;​solid;​;​;​0 0 2)

7

AddSymbol(275;​30;​bullet;​16;​1;​215 101 90;​shaded;​;​;​0 0 5;​brown)

8

AddSymbol(325;​30;​circleHalfRightTop;​16;​1.5;​110 110 110;​solid;​;​;​0 0 2)

9

AddSymbol(375;​30;​circleThreeQuarterRight;​16;​2;​86 111 145;​shaded)

10

/* Combined symbol. */

11

AddSymbol(425;​30;​spokes3;​16;​1.5;​90 120 90;​solid;​;​;​0 0 2)

12

AddSymbol(425;​30;​circle;​16;​2.0;​90 120 90;​solid;​;​;​0 0 2)

13

CloseDrawing()

EXAMPLE_01
EXAMPLE_02
1

OpenDrawing(250;​150)

2

ChartData( 5 5 9 17 13;​

3

15 15 19 27 23;​

4

25 25 29 37 33)

5

LineChart(symbol;​on)

6

LineStyle(all;​poly;​1.5;​#3879aa)

7

SymbolStyle(1;​circle;​10;​1.5;​#3879aa) /* Circles without fill. */

8

SymbolStyle(2;​circle;​10;​1.5;​#3879aa;​;​white) /* Circles with white fill. */

9

SymbolStyle(3;​circle;​10;​1.5;​#3879aa;​;​lime;​shaded) /* Circles with green fill. */

10

AxisLine(all;​0) /* Hide axis lines. */

11

AxisMajorTicks(all;​0) /* Hide tick marks. */

12

AxisMajorTickLabelTexts(x;​"") /* Hide tick mark labels. */

13

MajorGridLineWidths(y;​x;​0) /* Hide vertical grid lines. */

14

MajorGridLineWidths(x;​y;​0.25)

15

CloseDrawing()

EXAMPLE_02
EXAMPLE_03
1

OpenDrawing(300;​150)

2

ChartData(30 35 30;​20 25 20;​12 15 11;​3 5 1)

3

ScatterChart(shadow;​on)

4

SymbolColorScheme(jewels) /* Before SymbolStyle() function. */

5

SymbolStyle(1;​triangleUp;​12)

6

SymbolStyle(2;​spokes5;​12;​2)

7

SymbolStyle(3;​diamondHalfBottom;​13)

8

SymbolStyle(4;​circle;​12;​2.5;​;​;​#fafbfe)

9

ShadowStyle(all;​1 1 2)

10

AxisLine(all;​0) /* Hide axis lines. */

11

AxisMajorTicks(all;​0) /* Hide tick marks. */

12

AxisMajorTickLabelTexts(x;​"") /* Hide tick mark labels. */

13

MajorGridLineWidths(y;​x;​0) /* Hide vertical grid lines. */

14

MajorGridLineWidths(x;​y;​0.25)

15

CloseDrawing()

EXAMPLE_03
EXAMPLE_04
1

OpenDrawing(300;​150)

2

ChartData(30 35 30;​20 25 20;​12 15 10;​4 6 3)

3

LineChart(label+symbol+shadow;​on)

4

ShadowStyle(all;​1 1 1)

5

/* Series 1 */

6

LineStyle(1;​poly;​1.5;​193 39 45)

7

SymbolStyle(1;​circle;​9;​2;​193 39 45;​solid;​#fafbfe) /* Circles with background. */

8

LabelTexts(1;​"")

9

/* Series 2 (Character as symbol) */

10

LineStyle(2;​smooth;​0.5 10 3;​33 66 149)

11

SymbolStyle(2;​none)

12

LabelTexts(2;​"\u2756")

13

LabelStyle(2;​"Arial";​13;​plain;​33 66 149)

14

LabelOptions(2;​centerCenter;​0;​0)

15

/* Series 3 (Character as symbol) */

16

LineStyle(3;​none)

17

SymbolStyle(3;​none)

18

LabelTexts(3;​"\u24da")

19

LabelStyle(3;​"Arial";​12;​bold;​darkGreen)

20

LabelOptions(3;​centerCenter;​0;​0)

21

/* Series 4 (Text as symbol) */

22

LineStyle(4;​poly;​0.75;​gray)

23

SymbolStyle(4;​none)

24

LabelTexts(4;​"AB")

25

LabelBackground(4;​250 251 254 150;​solid;​0)

26

LabelOptions(4;​centerCenter;​0;​0)

27

/* Set up axes and grid lines. */

28

AxisLine(all;​0) /* Hide axis lines. */

29

AxisMajorTicks(all;​0) /* Hide tick marks. */

30

AxisMajorTickLabelTexts(x;​"") /* Hide tick mark labels. */

31

MajorGridLineWidths(y;​x;​0) /* Hide vertical grid lines. */

32

MajorGridLineWidths(x;​y;​0.25)

33

CloseDrawing()

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

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

×