xmCHART 3.4 - Reference
Last updated: 2010-06-05

Styles index previous next


ArrowStyle(seriesIndex;lineWidth;lineColor;linePattern;headLocation;
           headLength;headWidth;headInset;hasHollowHead)
Argument required type range default notes
seriesIndex   int 0..10000 all series indices
lineWidth   num[] 0..100 1 Dimension:[pt]
lineColor   rgba 0..255 black color constants
linePattern   int 1..128 black pattern constants
headLocation   int 0..3 end arrow head locations
headLength   num 0..1000 16 Dimension:[pt]
headWidth   num 0..1000 8 Dimension:[pt]
headInset   num -1000..1000 0 Dimension:[pt]
hasHollowHead   int 0..1 off flag constants

Examples:

ArrowStyle(2;1;red;;begin+end)

ArrowStyle()

Notes:
 

 
BorderColorScheme(schemeIndex)
Argument required type range default notes
schemeIndex   int 0..20 1 color scheme constants

Examples:

BorderColorScheme(1)

BorderColorScheme(beige)
BorderColorScheme(none)

Notes:
 

 
BorderStyle(seriesIndex;shape;width;color;pattern)
Argument required type range default notes
seriesIndex   int 0..10000 all series indices
shape   int 0..4 poly line shape constants
width   num[] 0..100 1 Dimension:[pt]
color   rgba 0..255 black color constants
pattern   int 1..128 black pattern constants

Examples:

BorderStyle(1;poly;2)

BorderStyle(2;smooth;2;black)
BorderStyle(all;none)

Notes:
 

 
FillColorScheme(schemeIndex)
Argument required type range default notes
schemeIndex   int 0..20 1 color scheme constants

Examples:

FillColorScheme(1)

FillColorScheme(beige)
FillColorScheme(none)

Notes:
 


FillStyle(seriesIndex;color;pattern)
Argument required type range default notes
seriesIndex   int 0..10000 all series indices
color   rgba 0..255 see notes color constants
pattern   int 1..128 black pattern constants

Examples:

FillStyle(1;red;gray)

FillStyle(all;;transparent)

Notes:
The first 16 default colors are: 37 42 38 16 57 9 74 50 43 2 82 70 41 28 71 66. Colors are repeated periodically if the number of series is greater than the number of colors. For black&white charts the series colors are usually set to black.


LabelBackground(seriesIndex;fillColor;fillPattern;borderWidth;borderColor;
                borderPattern;shadowOffset;shadowColor;shadowPattern)
Argument required type range default notes
seriesIndex   int -1..10000 all series indices
fillColor   rgba 0..255 white color constants
fillPattern   int 1..128 black pattern constants
borderWidth   num[] 0..100 1 Dimension:[pt]
borderColor   rgba 0..255 black color constants
borderPattern   int 1..128 black pattern constants
shadowOffset   num -100..100 0 Dimension:[pt]
shadowColor   rgba 0..255 gray color constants
shadowPattern   int 1..128 black pattern constants

Examples:

LabelBackground(all;;transparent)

LabelBackground(2;yellow)

Notes:
 


LabelOptions(seriesIndex;location;hOffset;vOffset;lowerLimit;upperLimit)
Argument required type range default notes
seriesIndex   int -1..10000 all series indices
location   int 0..9 (autom.) label locations
hOffset   num -10000..+10000 0 Dimension: [pt]
vOffset   num -10000..+10000 0 Dimension: [pt]
lowerLimit   num -9e99..+9e99 -9e99  
upperLimit   num -9e99..+9e99 +9e99  

Examples:

LabelOptions(all;centerCenter)

LabelOptions(1;;2;-2)

Notes:
 


LabelStyle(seriesIndex;font;size;style;color;alignment;orientation;
           maxWidth;maxHeight;ellipsisPosition)
Argument required type range default notes
seriesIndex   int -1..10000 all series indices
font   str 0..255 "ApplFont" MacOS:Geneva/Windows:Arial
size   int 0..127 9 Dimension:[pt]
style   int 0..7 plain pattern constants
color   rgba 0..255 black color constants
alignment   int 1..3 center horizontal alignments
orientation   num -360..+360 0 Dimension: [deg]
maxWidth   num -2..10000 -1 Dimension: [pt]
maxHeight   num -2..10000 -1 Dimension: [pt]
ellipsisPosition   int 0..4 3  

Examples:

LabelStyle(all;;;bold)

LabelStyle(2;"Courier";10;plain;gray;center;-45)

Notes:
 


LabelTexts(seriesIndex;text1;text2...)
Argument required type range default notes
seriesIndex   int -1..10000 all series indices
text1..10000   str 0..1000 "|u|" format specifiers

Examples:

LabelTexts(2;"")

LabelTexts(all;"|2f1|%")

Notes:
Texts consisting of several lines are possible by entering a line feed "\n".

 
LineColorScheme(schemeIndex)
Argument required type range default notes
schemeIndex   int 0..20 1 color scheme constants

Examples:

LineColorScheme(1)

LineColorScheme(beige)
LineColorScheme(none)

Notes:
 


LineStyle(seriesIndex;shape;width;color;pattern)
Argument required type range default notes
seriesIndex   int 0..10000 all series indices
shape   int 0..4 poly line shape constants
width   num[] 0..100 1 Dimension:[pt]
color   rgba 0..255 see notes color constants
pattern   int 1..128 black pattern constants

Examples:

LineStyle(1;smooth;2)

LineStyle(2;step)
LineStyle(all;poly;2;red)

Notes:
The first 16 default colors are: 37 42 38 16 57 9 74 50 43 2 82 70 41 28 71 66. Colors are repeated periodically if the number of series is greater than the number of colors. For black&white charts the series colors are usually set to black.


PictureStyle(seriesIndex;sourceType;sourceName;stackAndScaleAt)
Argument required type range default notes
seriesIndex   int 0..10000 all series indices
sourceType   int 1..3 clipboard picture source constants
sourceName   str 1..1000 "" max. 1000 chars.
stackAndScaleAt   num 0..+9e99 0  

Examples:

PictureStyle(1;clipboard)

PictureStyle(2;resource;"17")
PictureStyle(3;file;"Images/Gradient_03.tif")
PictureStyle(all;file;"C:/Programs/Fills/Gradient003.png")
PictureStyle(1;file;"Macintosh HD/Fills/Gradient_01.pdf")

Notes:
 


ShadowStyle(seriesIndex;offset;color;pattern)
Argument required type range default notes
seriesIndex   int 0..10000 all series indices
offset   num -100..100 3 Dimension:[pt]
color   rgba 0..255 gray color constants
pattern   int 1..128 black pattern constants

Examples:

ShadowStyle(all;;lightGray)

ShadowStyle(all;1)

Notes:
 

 
SymbolColorScheme(schemeIndex)
Argument required type range default notes
schemeIndex   int 0..20 1 color scheme constants

Examples:

SymbolColorScheme(1)

SymbolColorScheme(beige)
SymbolColorScheme(none)

Notes:
 


SymbolStyle(seriesIndex;type;size;lineWidth;color;pattern)
Argument required type range default notes
seriesIndex   int 0..10000 all series indices
type   int 0..18 cross symbol constants
size   num 0..100 9 Dimension:[pt]
lineWidth   num[] 0..100 1 Dimension:[pt]
color   rgba 0..255 see notes color constants
pattern   int 1..128 black pattern constants

Examples:

SymbolStyle(all;bullet;5)

SymbolStyle(2;none)

Notes:
The first 16 default colors are: 37 42 38 16 57 9 74 50 43 2 82 70 41 28 71 66. Colors are repeated periodically if the number of series is greater than the number of colors. For black&white charts the series colors are usually set to black.

©2010 X2max Software index previous next