A newer version of this page is available. Switch to the current version.

XYSeries.ColorEach Property

Indicates whether each point marker of a series is shown with a different color.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.1.dll


public bool ColorEach { get; set; }

Property Value

Type Description

true to paint each point marker with a different color; otherwise, false.


Use the ColorEach property to control whether data point markers are drawn in different colors.

If the ColorEach property is enabled, colors for point markers are taken from the palette specified via the ChartControlBase.Palette property.


The following example demonstrates how to create a 2D Point chart. To do this, it is necessary to assign the ChartControl.Diagram property to XYDiagram2D, and then add two PointSeries2D objects with points to the diagram’s Diagram.Series collection.

<Window x:Class="Point2DChart.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" Title="Window1" Height="350" Width="620">
        <dxc:ChartControl Name="chartControl1">
                        <dxc:PointSeries2D ColorEach="True" MarkerSize="20">
                                <dxc:SeriesPoint Argument="A" Value="1" />
                                <dxc:SeriesPoint Argument="B" Value="3" />
                                <dxc:SeriesPoint Argument="C" Value="7" />
                                <dxc:SeriesPoint Argument="D" Value="4" />
                                <dxc:SeriesPoint Argument="E" Value="5" />
                                <dxc:SeriesPoint Argument="F" Value="3" />
                                <dxc:SeriesPoint Argument="G" Value="9" />
                                <dxc:SeriesPoint Argument="H" Value="11" />
                            <!--region #PointOptions-->
                                <dxc:PointOptions PointView="ArgumentAndValues" />
                            <!--endregion #PointOptions-->
                            <!--region #MarkerModel-->
                                <dxc:DollarMarker2DModel />
                            <!--endregion #MarkerModel-->
                            <!--region #Label-->
                                <dxc:SeriesLabel ConnectorVisible="False" Indent="15" dxc:MarkerSeries2D.Angle="90" />
                            <!--endregion #Label-->
See Also