Back to Devexpress

ColorDataAdapter.ColorDataMember Property

maui-devexpress-dot-maui-dot-charts-dot-colordataadapter.md

latest1.5 KB
Original Source

ColorDataAdapter.ColorDataMember Property

Gets or sets the name of the data source field that contains point colors. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public string ColorDataMember { get; set; }

Property Value

TypeDefaultDescription
String.

The data source field name.

|

Example

In this example, the bar chart visualizes GDP values for the G20 and paints bars with colors from the specified field of the data source. Legend items obtain descriptions for these colors from another field.

  1. Create a data source – a list of objects each of which stores a country’s name, GDP value, region (the part of the world where the country is located), and color for this region.

  2. Set the BarSeries.PointColorizer property to a ColorDataAdapter object with the following properties specified:

See Also

ColorDataAdapter Class

ColorDataAdapter Members

DevExpress.Maui.Charts Namespace