Dundas Chart for ASP.NET
Palette Property
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > Series Class : Palette Property


Gets or sets the color palette of a Series object.


Color palette to use

Syntax

Visual Basic (Declaration)  
Public Property Palette As ChartColorPalette
Visual Basic (Usage) Copy Code
Dim instance As Series
Dim value As ChartColorPalette
 
instance.Palette = value
 
value = instance.Palette
C#  
public ChartColorPalette Palette {get; set;}

Return Value

An ChartColorPalette enumeration value that determines the data series' palette.

Remarks

A palette is used to automatically assign colors to data elements if: the data points themselves do not have colors assigned to them and; 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 then the colors used depends on: the chart type; the Chart object's palette or; the series palette, if one is specified. See the table below for further details:

Chart Type

Series Palette Used?

Colors Displayed by Data Points

Pie and Doughnut Charts

No

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

All charts except pie and doughnut

No

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

Pie and Doughnut Charts

Yes

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

All charts except pie and doughnut

Yes

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

This Series.Palette property has precedence over the root Chart object's palette when it comes to the display of data.

NOTE: If the Palette property for both the Chart and Series objects are set to None, and no color is assigned to the relevant data series/data points, then the data points will not be drawn, and will be displayed as "empty" areas.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.