For a chart with dynamic data, you can set colors of chart series dynamically based upon expressions. To use the feature, do the following steps:
Declare a chart with dynamic data in the usual way
For chart series to be colored dynamically, define corresponding color expressions in names of these series using seriesColor tags having the following syntax:
<<seriesColor[color_expression]>>
A color expression must return a value of one of the following types:
A string containing the name of a known color, that is, the case-insensitive name of a member of the KnownColor enumeration such as “red”
An integer value defining RGB (red, green, blue) components of the color such as 0xFFFF00 (yellow)