ComponentOne Chart for WPF and Silverlight
Chart for WPF and Silverlight / Chart Features / Style and Appearance / Changing Plot Element Colors
In This Topic
    Changing Plot Element Colors
    In This Topic

    To change the colors assigned to the plot elements such as bars and pies(depending on chart type), you can either change the Palette property to one of the predefined color palettes or you can create a custom palette, such as:

    C#
    Copy Code
    Brush[] customBrushes = new Brush[2] { Brushes.Blue, Brushes.Orange };
    c1Chart1.CustomPalette = customBrushes;
    

     

    See Also