# Palettes

Palettes are a quick and easy way to define a skin for your chart view. A palette is a collection of several palette entries and each palette entry defines up to four colors – two fills and two strokes. Currently, only the Fill and Stroke properties are in use, the AdditionalFill and AdditionalStroke are not taken into consideration when applying a palette.

> caption Figure 1: Palettes

![WinForms RadChartView Palettes](https://www.telerik.com/products/winforms/documentation/assets/c43aa99665f0bf95e225b327663349d0/chartview-customization-palettes001.png)

As of **R1 2018 RadChartView** offers two new palettes: *Material* and *Fluent*.

> caption Material and Fluent palettes

![WinForms RadChartView Material and Fluent palettes](https://www.telerik.com/products/winforms/documentation/assets/ab92418d0f8c5fe4068ef5b6d6004fa1/chartview-customization-palettes006.png)

As of **R2 2024 RadChartView** offers four new palettes: *Crystal*, *VisualStudio2019*, *Office2019*, *Windows11*.

> caption Crystal, VisualStudio2019, Office2019, Windows11 palettes

![WinForms RadChartView Crystal, VisualStudio2019, Office2019, Windows11 palettes](https://www.telerik.com/products/winforms/documentation/assets/6a9b08b8d3df3ee77cbf1ea6436d827c/chartview-customization-palettes007.png)

To apply one of these predefined palettes all you have to do is execute the following line of code:

## Apply a Palette

```C#
    this.radChartView1.Area.View.Palette = KnownPalette.Metro;
```

```VB.NET
Me.RadChartView1.Area.View.Palette = KnownPalette.Metro
```

Here is how two of the palettes look like in action:

> caption Figure 2: Autumn

![WinForms RadChartView Autumn](https://www.telerik.com/products/winforms/documentation/assets/00e8f099f826519db4bf3a10795812c1/chartview-customization-palettes002.png)

> caption Figure 3: Windows 8

![WinForms RadChartView Windows 8](https://www.telerik.com/products/winforms/documentation/assets/a715c4f37aad47197b3e178c2eb45baa/chartview-customization-palettes003.png)

The predefined palettes consist of 8 palette entries which are applied to the series in a cyclic order. The first series is drawn with the colors from the first palette entry the second series is drawn with the colors form the second palette entry… the ninth series is drawn with the colors form the first palette entry and so on. If you would like to apply a palette entry specifically to a series you can do so using either one of the following line of code:

## Specific Palette Entry

```C#
lineSeria.Palette = KnownPalette.Flower.GlobalEntries[0];
lineSeria.Palette = new PaletteEntry(Color.Yellow, Color.Red);
```

```VB.NET
lineSeria.Palette = KnownPalette.Flower.GlobalEntries(0)
lineSeria.Palette = New PaletteEntry(Color.Yellow, Color.Red)
```

Predefined palettes cannot be edited , however, you can define your own palettes by inheriting from **ChartPalette** and creating a collection of palette entries. Here is an example:

## Create a Custom Palette

```C#
public class CustomPalette : ChartPalette
{
    public CustomPalette()
    {
        this.GlobalEntries.Add(Color.Yellow, Color.Red);
        this.GlobalEntries.Add(Color.Yellow, Color.Blue);
    }
}
```

```VB.NET
    Public Class CustomPalette
        Inherits ChartPalette
        Public Sub New()
            Me.GlobalEntries.Add(Color.Yellow, Color.Red)
            Me.GlobalEntries.Add(Color.Yellow, Color.Blue)
        End Sub
    End Class
```

## Apply a Custom Palette

```C#
           this.radChartView1.Area.View.Palette = new CustomPalette();
```

```VB.NET
Me.RadChartView1.Area.View.Palette = New CustomPalette()
```

> caption Figure 4: Custom Palette

![WinForms RadChartView Custom Palette](https://www.telerik.com/products/winforms/documentation/assets/5309cd7e55e421cef5af6c79ec6a31f6/chartview-customization-palettes005.png)

## See Also

* [Series Types](https://www.telerik.com/products/winforms/documentation/controls/chartview/series-types/series-types)
* [Axes](https://www.telerik.com/products/winforms/documentation/controls/chartview/axes/axes)
