A newer version of this page is available. Switch to the current version.

PieChartDataAdapter.Mappings Property

Contains information on how data for chart items should be obtained from a data source.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v18.2.dll


public MapPieMappingInfo Mappings { get; set; }
Public Property Mappings As MapPieMappingInfo

Property Value

Type Description

A MapPieMappingInfo object.


To automatically generate pie chart items from a datasource do the following.

  1. Create a PieChartDataAdapter object and assign it to the VectorLayer.Data property.
  2. Bind a data source to the DataSourceAdapterBase.DataSource property of the object.
  3. Specify mappings to assign data fields to pie segment properties. To do this, specify the MapItemMappingInfoBase.Latitude, MapItemMappingInfoBase.Longitude, MapPieMappingInfo.SegmentValue and MapPieMappingInfo.SegmentId properties of the MapPieMappingInfo object assigned to the PieChartDataAdapter.Mappings property.
  4. Specify the ChartDataSourceAdapter.ItemIdDataMember property to group generated pie segments to pie charts.
    <dxm:PieChartDataAdapter DataSource="{Binding Source={StaticResource dataProvider}, XPath=Table1}" 
                             ItemIdDataMember="Country" ItemMinSize="20" ItemMaxSize="60">
            <dxm:MeasureRules RangeStops="1 10 20 30 40"/>
            <dxm:MapItemAttributeMapping Member="Name" Name="Name"/>
            <dxm:MapPieMappingInfo Latitude="CapitalLat" Longitude="CapitalLon" 
                                   SegmentId="MedalClass" SegmentValue="Quantity"/>
See Also