[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Collapse]Map Control
   [Expand]Getting Started
    Layers
   [Expand]Coordinate Systems
   [Expand]Map Image Data
   [Expand]GIS Data
   [Collapse]Vector Data
    [Collapse]Providing Data
     [Expand]Add Vector Items Manually
     [Expand]Load Vector Items from Vector Format Source
      Generate Vector Items Automatically
      Generate Chart Items Automatically
      Provide Data Using Vector Item Attributes
     Colorizers
     Clusterers
   [Expand]Visual Elements
   [Expand]End-User Interaction
   [Expand]Examples
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Generate Chart Items Automatically

The map control supports map chart items used to visualize analytical data. There are two types of chart items supported by the map control: Bubble charts and Pie charts.

Expanded Bubble Charts

The BubbleChartDataAdapter class allows you to automatically generate MapBubble objects based on data in a data source. To do this, create a BubbleChartDataAdapter object and assign the required data source containing information about charts to its DataSourceAdapterBase.DataSource property. Then, set this BubbleChartDataAdapter object to a vector layer's VectorLayer.Data property.

It is necessary to specify the following properties used to generate vector items. To do this, use a MapBubbleMappingInfo object returned by the BubbleChartDataAdapter.Mappings property.

Note

If you need to provide additional information for generated vector items (e.g., to display this information in tooltips), specify it using the DataSourceAdapterBase.AttributeMappings property of BubbleChartDataAdapter. For detailed information, refer to Provide Data Using Vector Item Attributes.

The following image shows automatically generated Bubble charts from a data table.

To learn more on how to bind data using the BubbleChartDataAdapter class, refer to How to: Automatically Generate Bubble Chart Items from a Datasource.

Expanded Pie Charts

The PieChartDataAdapter class allows you to automatically generate MapPie objects based on data in a data source. To do this, create a PieChartDataAdapter object and assign the required data source object containing information about charts to the DataSourceAdapterBase.DataSource property. Then, set the PieChartDataAdapter object to the VectorLayer.Data property of a vector layer.

After that, it is necessary to provide values used to unite generated PieSegment objects into Pie charts. To do this, set the name of a data object property containing data about a pie to the ChartDataSourceAdapter.ItemIdDataMember property.

Then, it is necessary to specify the following data object properties used to generate Pie charts. To do this, use a MapPieMappingInfo object returned by the PieChartDataAdapter.Mappings property.

Note

If you need to provide additional information for generated vector items (e.g., to display this information in tooltips), specify it using the DataSourceAdapterBase.AttributeMappings property of PieChartDataAdapter. For detailed information, refer to Provide Data Using Vector Item Attributes.

The following image shows automatically generated pie charts from a data table.

To learn more about how to bind data using the PieChartDataAdapter class, refer to How to: Automatically Generate Pie Chart Items from a Datasource.

Expanded See Also

Is this topic helpful?​​​​​​​