SeriesPoint.Color Property

Gets or sets the color used to draw this point.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public Color Color { get; set; }
Public Property Color As Color

Property Value

Type Description
Color

A Color object.

Remarks

You can also use series point colorizers to paint series points.

Examples

The following example shows how to paint all the points with values less than 80 with the Red color:

chartControl1.BoundDataChanged += OnChartBoundDataChanged;
// ...
private void OnChartBoundDataChanged(object sender, EventArgs e) {       
    foreach (SeriesPoint seriesPoint in chartControl1.Series[0].Points) {
       if (seriesPoint.Values[0] <= 80) {
            seriesPoint.Color = Color.Red;
        }
    }
}
See Also