Skip to main content

SeriesPoint.Color Property

Gets or sets the color used to draw this point.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

public Color Color { get; set; }

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