[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Fundamentals
    [Expand]Providing Data
    [Expand]Chart Elements
    [Collapse]Appearance Customization
      Chart Themes and Palettes
      Custom Draw
      Series and Series Point Colors
      Series and Marker Models
      Segment Colorizers
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Expand]Examples
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Series and Series Point Colors

Series and Series Points provide the Brush property that allows you to assign a custom color to a series/series point.

Expanded How to: Specify the Series Color

The XYSeries.Brush property allows you to specify series color. The Area Series and Funnel Series provide the Border properties that contain the Brush property. This property specifies the series' border brush:

The following markup demonstrates how to specify a custom color for a series:

The classes and properties below configure series' colors:

Symbol

Description

XYSeries.Brush

Gets or sets the color of the XY-series.

AreaSeries2D.Border

AreaStackedSeries2D.Border

CircularAreaSeries2D.Border

Provides access to a series border's settings.

SeriesBorder

Contains settings the specify the appearance of a series border.

Important

The Chart Control can use only System.Windows.Media.SolidColorBrush objects to draw series.

Note

The pie/donut series and funnel series do not provide series color and you should utilize series points' brushes

Tip

Use the ChartControl.BoundDataChanged event to specify colors of series generated via the Series Template.

Expanded How to: Specify Series Points' Colors

The Chart Control allows you to colorize series points in custom colors:

The selection of a particular method of coloring depends on whether the Chart Control is bound to data:

Important

The Chart Control can use only System.Windows.Media.SolidColorBrush objects to color series points.

Colorize Manually Added Points

The SeriesPoint class provides the SeriesPoint.Brush property that allows you to specify the series point color when you manually add series points to series:

Colorize Points of Data-Bound Series

Use the ColorObjectColorizer (see ColorObjectColorizer) colorizer to draw series points using colors that a data source stores when the chart displays series bound to a data source or it generates series from a data source:

The following classes and properties manage colors of series points that belong to the data-bound series:

Symbol Description
Series.ColorDataMember Gets or sets the name of the data member on which the color of a series point is based.
Series.Colorizer Gets or sets the colorizer used by this series.
ColorObjectColorizer A Colorizer that allows providing System.Windows.Media.Color objects stored in Series.ColorDataMember to series points.

Refer to the Colorizers topic to learn more about other ways to color series points in custom colors.

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