Skip to main content Skip to footer

Set a Custom Color Palette in FlexChart

Background:

This article will cover how to add a custom color palette for FlexChart

Solution:

  1.    Set the FlexChart's CustomPalette property to a new Solid Brush

     flexChart1.CustomPalette = new SolidBrush[]

2. Add the colors that you want to the Custom Palette

{
  new SolidBrush(Color.Red),
  new SolidBrush(Color.Yellow),
  new SolidBrush(Color.LightSkyBlue),
}

3. Go into the properties of the FlexChart and set the Palette property to Custom. 

Here is what it will look like when all put together:

flexChart1.CustomPalette = new SolidBrush[]
            {
            new SolidBrush(Color.Red),
            new SolidBrush(Color.Yellow),
            new SolidBrush(Color.LightSkyBlue),
            };

Hunter Haaf