Skip to main content
A newer version of this page is available. .
All docs
V20.2

SunburstFlatDataAdapter.LabelDataMember Property

Gets or sets the data member that is a source of Sunburst sector labels.

Namespace: DevExpress.Xpf.TreeMap

Assembly: DevExpress.Xpf.TreeMap.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.TreeMap, DevExpress.Wpf.TreeMap

Declaration

public string LabelDataMember { get; set; }

Property Value

Type Description
String

The name of a data member that is a source of Sunburst sector labels.

Example

This example creates a Sunburst chart based on an XML data file with flat structure. To do this, follow the steps below:

<dxtm:SunburstControl>
    <dxtm:SunburstControl.DataAdapter>
        <dxtm:SunburstFlatDataAdapter
            x:Name="dataAdapter"
            LabelDataMember="Symbol"
            ValueDataMember="Value"
            DataSource="{Binding}"
            GroupDataMembers="Block, Family"/>
    </dxtm:SunburstControl.DataAdapter>
</dxtm:SunburstControl>

The data structure looks as follows:

Show structure
<?xml version="1.0"?>
<ArrayOfElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Element>
    <FakeValue>1</FakeValue>
    <AtomicNumber>1</AtomicNumber>
    <Group>1</Group>
    <Period>1</Period>
    <Symbol>H</Symbol>
    <Name>Hydrogen</Name>
    <AtomicMass>1.008</AtomicMass>
    <Density>0.00008988</Density>
    <MeltingPoint>14.01</MeltingPoint>
    <BoilingPoint>20.28</BoilingPoint>
    <Family>Nonmetal</Family>
    <DiscoveryPeriod>Middle Ages–​1799</DiscoveryPeriod>
    <Block>S-block</Block>
  </Element>
  <!--...-->
</ArrayOfElement>  

The following image shows the results:

See Also