All chart series expose the ColorField property. It allows the developer to set a custom color for a
given item in a data-bound chart. It colorizes the entire bar for BarSeries and ColumnSeries; PieSeries and
DonutSeries have the feature from their inception and it changes the color for the corresponding sector. For other chart
types like AreaSeries, LineSeries, ScatterLineSeries this property changes the color of their markers only.
The color shown in the default legend is the main color chosen for the series (Series.Appearance.FillStyle.BackgroundColor).
The additional color present in the data source are not shown in the built-in legend. Therefore, this demo shows a custom
legend designed to match the scenario.
To use the default color of the series the data source must have an empty string in the ColorField column.
When the number of errors and warnings per week exceeds 85, the respective bars of the chart will change their colors to bring
the user's attention to them.
The data in the demo is generated randomly, if you do not see colorized bars, reload the page to get a new set of values.