@GCOLOR (Color Chart Object)

This macro can be used to apply a color to a chart object.

SYNTAX:

@GCOLOR nObject Color

PARAMETERS:

nObject; 0...18 selects one of the following chart objects:
0 = Chart Frame
1 = Legend Frame
2 = Chart Title
5 = Y1-Axis Title
6 = Y2-Axis Title
7 = X-Axis Title
8 = Y1-Axis Labels
9 = Y2-Axis Labels
10 = X-Axis or O1-Axis Labels
11 = Area around Series/Legend Labels
12 = Y1-Major Gridlines
13 = Y2-Major Gridlines
14 = X1- or O1-Major Gridlines
15 = Gauge Face (ONLY with @GAUGE_STYLE 1)
16 = Gauge Border (ONLY with @GAUGE_STYLE 1)
17 = Gauge Border Outline (ONLY with @GAUGE_STYLE 1)
18 = Gauge Needle Base (ONLY with @GAUGE_STYLE 1)

Color: Defines the color to be applied to the chart object:

Color Type

Data Type

Range

Example

Color Only

Hex

0x000000...0xFFFFFF

0xFF0000 (Red)

 

HTML

#000000...#FFFFFF

#FF0000 = Red

 

Integer

3 integers 0...255 specifying the red, green, & blue components of the color

255 0 0 = Red

 

String

a color name string from http://www.w3schools.com/CSS/css_colornames.asp

Red

Color + Transparency

String:
Integer

a color name string from http://www.w3schools.com/CSS/css_colornames.asp:0...255

Red:224 (almost opaque)

 

HTML

#00000000...#FFFFFFE0 where: last two characters specify transparency level

#ff0000e0
#ff0000=Red
e0=Transparency

Gradient

String

For area objects (0, 1, 11, 15, 16, 18) only, Gradient name defined by the @GRAD or @GRAD_ABA macro

@GCOLOR 0 MyGradientDef

Picture

String

For area objects (0, 1, 11, 15, 16, 18) only, Picture name defined by the @PICT or @PICTF macro

@GCOLOR 0
MyPictureDef

EXAMPLE: @GCOLOR.WID

@GRAD G1 180 Pink White
@GCOLOR 0 G1
@GCOLOR 1 Purple
@GCOLOR 2 255 0 0
@GCOLOR 8 0x00FF00
@GCOLOR 19 Aqua
@GCOLOR 11 White
@GCOLOR 12 Orange

EXAMPLE: @GCOLOR_IN_GAUGE.WID

@GAUGE @GAUGE_STYLE 1 @GRAD G1 90 Pink White
@GCOLOR 15 G1
@GCOLOR 16 Red
@GCOLOR 17 Aqua
@GCOLOR 18 Purple

ALSO SEE:

@MCOLOR (to color chart risers & markers)

Next Macro Previous Macro Return to Alpha List

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