SunburstFlatDataAdapter.GroupDataMembers Property

Gets or sets the names of data source members used to group sunburst items generated from the data source.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v21.1.dll

Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public GroupDataMemberCollection GroupDataMembers { get; }

Property Value

Type Description
GroupDataMemberCollection

A collection of String values that specify the data member’s names.

Example

This example demonstrates how to visualize flat data using the SunburstControl.

A sunburst with flat data

Create a SunburstFlatDataAdapter object and assign it to the SunburstControl.DataAdapter property to provide flat data to the Sunburst. Then, specify the adapter’s SunburstFlatDataAdapter.DataSource, SunburstFlatDataAdapter.LabelDataMember and SunburstFlatDataAdapter.ValueDataMember to define data source members that should be used to generate sunburst items. Add data members to the SunburstFlatDataAdapter.GroupDataMembers collection to specify how to group the sunburst’s items.

View Example: How to: provide flat data to Sunburst

private void OnLoad(object sender, EventArgs e) {
    SunburstFlatDataAdapter dataAdapter = new SunburstFlatDataAdapter();            
    dataAdapter.ValueDataMember = "Annual";
    dataAdapter.LabelDataMember = "Product";
    dataAdapter.GroupDataMembers.AddRange(new string[] { "Category", "Country" });
    dataAdapter.DataSource = CreateProductInfos();
    sunburstControl.DataAdapter = dataAdapter;
}
See Also