Skip to main content

ColorEachPointColorizer Class

A colorizer that uses colors from the default or custom palette to paint series points.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

Declaration

public class ColorEachPointColorizer :
    ChartElement,
    IPointColorizer,
    IStackedPointColorizer,
    IRangePointColorizer,
    IWeightedPointColorizer

Remarks

To enable a point colorizer for a series, assign a ColorEachPointColorizer object to the series’s PointColorizer property.

Default Colors

The assigned colorizer applies 7 default colors to points in turn if you don’t specify a palette (ColorEachPointColorizer.Palette or ChartStyleBase.Palette) explicitly.

ColorEachPointColorizer - Default

<dxc:PointSeries>
    <!-- Series Data -->
    <dxc:PointSeries.PointColorizer>
            <dxc:ColorEachPointColorizer/>
    </dxc:PointSeries.PointColorizer>
</dxc:PointSeries>

Custom Colors

Use the ColorEachPointColorizer.Palette property to specify custom colors for series points.

ColorEachPointColorizer - Custom Palette

View Example

    <dx:ColorEachPointColorizer x:Name="myColor">
        <dx:ColorEachPointColorizer.Palette>
            <x:Array Type="{x:Type Color}">
                <Color>#006EC6</Color>
                <Color>#18ce9a</Color>
                <Color>#009ad6</Color>
                <Color>#79cb5d</Color>
                <Color>#0ed2dc</Color>
                <Color>#71a9dd</Color>
                <Color>#447238</Color>
                <Color>#12898e</Color>
            </x:Array>
        </dx:ColorEachPointColorizer.Palette>
    </dx:ColorEachPointColorizer>
</dx:PointSeries.PointColorizer>
<dx:PointSeries.Style>

You can also customize the palette at the chart level. To do this, specify the ChartStyleBase.Palette property.

Inheritance

Object
BindableObject
Element
DevExpress.Maui.Core.Internal.DXElementBaseCore
ChartElement
ColorEachPointColorizer
See Also