Skip to main content
A newer version of this page is available. .

SeriesBase.ColorDataMember Property

Gets or sets the name of the data member name that is used to specify series point colors.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Data)]
[XtraSerializableProperty]
public string ColorDataMember { get; set; }

Property Value

Type Description
String

A String value that specifies the data member’s name.

Remarks

The Chart Control’s point colorizers define point colors based on values that the color data member provides. A colorizer determines how to process the color data member’s values:

  • ColorObjectColorizer provides the color data member’s values to the SeriesPoint.Color property if these values have the Color type or a type that can be converted to a color (integer number or string). This is the default chart colorizer.
  • KeyColorColorizer uses the color data member’s values as key values. Point colors depend on keys’ values.
  • RangeColorizer allows you to specify color ranges based on the color data member’s values. These values should be floating point numbers. You can use IColorizerValueProvider to convert the data member’s values to floating point values.

When the Chart Control aggregates series data, the aggregated point has the color that mostly occurs on the aggregated interval.

See Also