# Changing Plot Element Colors

## Content



To change the colors assigned to the plot elements such as bars and pies(depending on chart type), you can either change the [Palette](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.C1Chart.Palette.html) property to one of the predefined color palettes or you can create a custom palette, such as:

```csharp
Brush[] customBrushes = new Brush[2] { Brushes.Blue, Brushes.Orange };
c1Chart1.CustomPalette = customBrushes;
```

## See Also

[Formatting Charts](/componentone/docs/wpf/online-chart/overview/ChartFeatures/StyleandAppearance/FormattingCharts)