Skip to main content
All docs
V24.2

SunburstFlatDataAdapter Class

Loads data from data sources with the flat structure to a Sunburst chart.

Namespace: DevExpress.Xpf.TreeMap

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

NuGet Package: DevExpress.Wpf.TreeMap

Declaration

public class SunburstFlatDataAdapter :
    SunburstDataAdapterBase,
    IFlatDataAdapter

Remarks

Follow the steps below to load data from flat databases to a Sunburst chart:

<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