Skip to main content
All docs
V24.1

SunburstFlatDataAdapter.ValueDataMember Property

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

Namespace: DevExpress.Xpf.TreeMap

Assembly: DevExpress.Xpf.TreeMap.v24.1.dll

NuGet Package: DevExpress.Wpf.TreeMap

Declaration

public string ValueDataMember { get; set; }

Property Value

Type Description
String

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

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