Colors

You can apply colors to different areas of a chart such as titles, legends, labels, or axes. You define a color either with the RGB value or by using a gradient.

Fixed Colors

A color is expressed using the RGB color model and an opacity.

Attribute Description Value
rgb The RGB color The # sign followed by an hexadecimal value
alpha The color opacity [0, 255] from opaque to invisible

Example

<color rgb="#9d9d9d" alpha="187"/>
Gradient

A gradient of colors is defined by a starting color and an ending color. Each color has an RGB value and an opacity. The gradient is oriented according to the orientation attribute value (Horizontal|HorizontalInverse|Vertical|VerticalInverse|DiagonalUp|DiagonalUpInverse|DiagonalDown|DiagonalDownInverse).

Example

<gradient orientation="DiagonalDown"> 
    <start rgb="#ffffff" alpha="95"/>  
    <end rgb="#000000" alpha="95"/> 
</gradient>