[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Collapse]Chart Control
   [Expand]Getting Started
   [Expand]Charting Basics
   [Expand]Series Views
   [Expand]Chart Elements
   [Expand]Providing Data
   [Expand]Data Representation
   [Collapse]Appearance Customization
     Define an Appearance for Painting All Visual Elements
     Choose a Palette for Painting Series, Points and Indicators
     Create a Custom Palette
     Prioritized Appearance and the Appearance Template
     Series Point Colorizer
     Segment Colorizers
     Custom Draw Events
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]Additional Resources
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Choose a Palette for Painting Series, Points and Indicators

This document describes how to select a palette for painting a chart's Series (or their individual points). The same steps will define an individual palette for painting a chart's Indicators.

You can choose a pre-composed palette for painting a chart's series or their points via the ChartControl.PaletteName property.

To define a similar palette for all the chart's indicators, use the ChartControl.IndicatorsPaletteName property.

The following images demonstrate a chart with different palettes (using the Light appearance ). For the complete list of pre-composed palettes, see PaletteRepository.PaletteNames.

The property's value Resulting image
ChartControl.PaletteName = Aspect
ChartControl.PaletteName = Office
ChartControl.PaletteName = Office 2013

Additionally, within the selected palette, you can specify the base color of this palette, to assign a spectrum based on this color. The base color is specified by an integer value of the ChartControl.PaletteBaseColorNumber property. Its effect is demonstrated in the following image (with an example of the Concourse palette).

The properties' values

Resulting image

ChartControl.PaletteName = Office 2013

ChartControl.PaletteBaseColorNumber = 1

ChartControl.PaletteName = Office 2013

ChartControl.PaletteBaseColorNumber = 3

When the ChartControl.PaletteBaseColorNumber property is set to 0 and the SeriesViewColorEachSupportBase.ColorEach property of a series is enabled, the palette is used to paint the individual points of that series.

When a palette base color number is not equal to 0, the SeriesViewColorEachSupportBase.ColorEach property paints series points based on a composition of the specified color.

The property's value

Resulting image

ColorEach = true

PaletteBaseColorNumber = 0

ColorEach = true

PaletteBaseColorNumber = 2

When none of the demonstrated approaches provide the desired result, you have the option to create your own palette.

In addition, you can enable your end-users to choose palettes and appearances for a chart themselves. The corresponding example is available in our Code Central database at How to provide end-users with the capability to change a chart's appearance on the fly.

Expanded See Also

Is this topic helpful?​​​​​​​