Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MapPie Class

The class used to draw a pie chart on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public class MapPie :
    MapPathBase<PieSegment>,
    IMapContainerDataItem,
    IMapDataItem,
    ISupportCoordLocation,
    IMapChartItem,
    IMapChartDataItem,
    IMapValueDataItem,
    ITemplateGeometryItem,
    ILocatableRenderItem,
    ISizedPointCore,
    IPointCore,
    IClusterable,
    IClusterItemCore,
    IClusterItem,
    IPie,
    IMapItemCore

The following members return MapPie objects:

#Remarks

The following image shows an example of a map Pie chart.

MapPieExample

#Example

View Example

var pie = new MapPie() { Location = new GeoPoint(-20, -30), Size = 100 };
pie.Segments.AddRange(new PieSegment[] {
    new PieSegment(){ Argument = "A", Value = 2},
    new PieSegment(){ Argument = "B", Value = 3},
    new PieSegment(){ Argument = "C", Value = 4}
});
ItemStorage.Items.Add(pie);

#Implements

See Also