Skip to main content

ColorEachPointColorizer Class

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

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.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) 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

    <dxc:PointSeries>
        <!-- Series Data -->
        <dxc:PointSeries.PointColorizer>
            <dxc:ColorEachPointColorizer>
                <dxc: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>
                </dxc:ColorEachPointColorizer.Palette>
            </dxc:ColorEachPointColorizer>
        </dxc:PointSeries.PointColorizer>
    </dxc:PointSeries>
    

Inheritance

Object
ChartElement
ColorEachPointColorizer
See Also