This documentation is archived and is not being maintained.
Chart::Palette Property
Visual Studio 2010
Gets or sets the palette for the Chart control.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
[BindableAttribute(true)] [PersistenceModeAttribute(PersistenceMode::Attribute)] public: property ChartColorPalette Palette { ChartColorPalette get (); void set (ChartColorPalette value); }
<asp:Chart Palette="ChartColorPalette" />
Property Value
Type: System.Web.UI.DataVisualization.Charting::ChartColorPaletteA 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
Note