Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartStyleBase.Palette Property

Gets or sets a palette (collection of colors) used to draw chart series and series points. This is a bindable property.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

#Declaration

C#
public Color[] Palette { get; set; }

#Property Value

Type Description
Color[]

An array of Color objects that specifies the chart’s palette.

#Remarks

The following example uses the palette colors to paint line series:

DevExpress MAUI Chart - Lines painted using palette colors

<dxc:ChartView>
    <dxc:ChartView.ChartStyle>
        <dxc:ChartStyle>
            <dxc:ChartStyle.Palette>
                <x:Array Type="{x:Type Color}">
                    <Color>#C82C4A</Color>
                    <Color>#168051</Color>
                    <Color>#2D67D0</Color>
                </x:Array>
            </dxc:ChartStyle.Palette>
        </dxc:ChartStyle>
    </dxc:ChartView.ChartStyle>
    <dxc:ChartView.Series>
        <dxc:LineSeries .../>
        <dxc:LineSeries .../>
        <dxc:LineSeries .../>
    </dxc:ChartView.Series>
</dxc:ChartView>

The ColorEachPointColorizer uses ChartStyleBase.Palette colors if its Palette is not specified.

See Also