Series Gradients
The FlexChart allows you to specify gradients for series style properties. The gradients are specified as strings with the following syntax:
{type}({coords}){color[:offset[:opacity]]}
Where:
- {type} is either 'l' or 'r', for linear or radial gradients,
- {coords} is a set of three or four numbers that specify the gradient direction (x1/y1/x2/y2 for linear, cx.cy.r for radial), and
- {color:offset:opacity} is an HTML color string optionally followed by offset and opacity values. You may add add additional colors using a hyphen as a separator.
The chart below uses gradients to fill the area under the series: