Colors

Many parts of a chart use colors. You can define colors either with the RGB value or by using a gradient.

Fixed Colors

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

<color> 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>