Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Series.Palette Property

Gets or sets the color palette of a Series object.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)
[BindableAttribute(true)]
public ChartColorPalette Palette { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.ChartColorPalette
An ChartColorPalette enumeration value that determines the palette for the data series.

A palette is used to automatically assign colors to data elements if the data points themselves do not have colors assigned to them and if the data Series object that the data points belong to also does not have an assigned color.

If no series or data point colors are explicitly specified, the colors used depend on the chart type and the Chart control palette or Series palette, if one is specified. See the table below for further details:

Chart Type

Series Palette Used?

Colors Displayed by Data Points

Any shape chart (for example, Pie and Doughnut charts)

No

First available colors used from Chart control palette. One color per data point.

All charts except shape charts.

No

First available colors from Chart control palette. One color per data series.

Any shape chart (for example, Pie and Doughnut charts)

Yes

First available colors used from Series palette. One color per data point.

All charts except shape charts.

Yes

First available colors used from Series palette. One color per data series.

This Palette property has precedence over the Palette property of the root Chart object, with respect to the display of data.

NOTE: If the Palette property for both the Chart and Series objects is set to None, and no color is assigned to the relevant data series/data points, the default palette "BrightPastel" or PaletteCustomColors is used.

.NET Framework

Supported in: 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.