Export (0) Print
Expand All

Chart.Palette Property

Gets or sets the palette for the Chart control.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public ChartColorPalette Palette { get; set; }
<asp:Chart Palette="ChartColorPalette" />

Property Value

Type: System.Web.UI.DataVisualization.Charting.ChartColorPalette
A ChartColorPalette enumeration value that determines the palette to be used.

A palette is used to automatically assign colors to data elements if both of the following conditions have been met:

  • the data points themselves do not have colors assigned to them.

  • the data series 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 object's palette or the palette of an associated series, if one is specified.


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 or data points, the data points will not be drawn, and will be displayed as "empty" areas.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

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.

© 2014 Microsoft