Back to Devexpress

How to: Change Point Colors

wpf-6859-controls-and-libraries-charts-suite-chart-control-examples-appearance-customization-how-to-change-point-colors.md

latest877 B
Original Source

How to: Change Point Colors

  • Jun 07, 2019

This example demonstrates how to change the series point colors by using a custom palette. To do this, a CustomPalette is added to the chart’s ChartControlBase.Palette. And, custom colors are specified via the CustomPalette.Colors property.

View Example

xaml
<dxc:ChartControl.Palette>
    <dxc:CustomPalette>
        <dxc:CustomPalette.Colors>
            <Color>Blue</Color>
            <Color>Yellow</Color>
            <Color>Magenta</Color>
        </dxc:CustomPalette.Colors>
    </dxc:CustomPalette>
</dxc:ChartControl.Palette>