wpf-devexpress-dot-xpf-dot-map-0238a5f5.md
The data adapter that provides data to generate Pie chart items.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
[PieSourceCustomBindingProperties]
public class PieChartDataAdapter :
ChartDataSourceAdapter
<PieSourceCustomBindingProperties>
Public Class PieChartDataAdapter
Inherits ChartDataSourceAdapter
To automatically generate pie chart items from a datasource do the following.
PieChartDataAdapter object and assign it to the VectorLayer.Data property.<dxm:VectorLayer.Data>
<dxm:PieChartDataAdapter DataSource="{Binding Source={StaticResource dataProvider}, XPath=Table1}"
ItemIdDataMember="Country" ItemMinSize="20" ItemMaxSize="60">
<dxm:PieChartDataAdapter.MeasureRules>
<dxm:MeasureRules RangeStops="1 10 20 30 40"/>
</dxm:PieChartDataAdapter.MeasureRules>
<dxm:PieChartDataAdapter.AttributeMappings>
<dxm:MapItemAttributeMapping Member="Name" Name="Name"/>
</dxm:PieChartDataAdapter.AttributeMappings>
<dxm:PieChartDataAdapter.Mappings>
<dxm:MapPieMappingInfo Latitude="CapitalLat" Longitude="CapitalLon"
SegmentId="MedalClass" SegmentValue="Quantity"/>
</dxm:PieChartDataAdapter.Mappings>
</dxm:PieChartDataAdapter>
</dxm:VectorLayer.Data>
Object DispatcherObject DependencyObject Freezable MapDependencyObject MapDataAdapterBase CoordinateSystemDataAdapterBase DataSourceAdapterBase ChartDataSourceAdapter PieChartDataAdapter
See Also