On line guide/help

You are on page 18 of the online help. Navigate sequentially through the guide pages or search for a topic of interest to you.

Index Prev. Next

Fillstyle

Set the fill style

When used in a content element, it sets the default fill style. When used in a specialized element (e.g., <box>), it sets the fill style for the element.


Parameters

Elements / attributes of the <fillstyle> / <fill> element:

<type> (string) Type of fill. Possible values:
N None: no fill (default). Any value not listed here is also treated as None.
S Solid: single color fill
L (or G) Linear gradient from the start color to the end color
R Radial gradient from the start color to the end color
Only the first letter is checked, so for example Solid or NONE can also be used.
<color> (aliases: <color1>, <startcolor>) Fill color (start color for the gradients). Format: RRGGBB, the # prefix is optional.
<color2> (alias: <endcolor>) End color, used only by the gradient fills.
<orientation> Direction of the linear gradient: h / horiz / horizontal (default) or v / vert / vertical.

The gradient fills (L, R) are supported only by the box / text element. The other elements (rectangle, circle, legend, chart measures) support only the solid fill.

The # prefix for the color value is optional. RR = red (in hexadecimal, from 00 to FF), GG = green (in hexadecimal, from 00 to FF), BB = blue ((in hexadecimal, from 00 to FF))

Example

Default fill style and fill styles of single elements.

Fill style examples