wpf-17774-controls-and-libraries-map-control-examples-vector-data-providing-data-how-to-automatically-generate-bubble-chart-items-from-a-datasource.md
To generate bubble charts from a data source, do the following.
<dxm:VectorLayer x:Name="earthquakesLayer" ShapeFill="Orange" ToolTipEnabled="True"
ToolTipPattern="{}{Month}/{Day}/{Year}
Magnitude: %V%
Depth: {Depth}km">
<dxm:BubbleChartDataAdapter DataSource="{Binding Data}"
ItemMaxSize="60" ItemMinSize="10">
<dxm:BubbleChartDataAdapter.AttributeMappings>
<dxm:MapItemAttributeMapping Member="day" Name="Day"/>
<dxm:MapItemAttributeMapping Member="mon" Name="Month"/>
<dxm:MapItemAttributeMapping Member="yr" Name="Year"/>
<dxm:MapItemAttributeMapping Member="dep" Name="Depth"/>
</dxm:BubbleChartDataAdapter.AttributeMappings>
<dxm:BubbleChartDataAdapter.Mappings>
<dxm:MapBubbleMappingInfo Latitude="glat" Longitude="glon" Value="mag"/>
</dxm:BubbleChartDataAdapter.Mappings>
<dxm:BubbleChartDataAdapter.BubbleSettings>
<dxm:MapBubbleSettings MarkerType="Circle"/>
</dxm:BubbleChartDataAdapter.BubbleSettings>
</dxm:BubbleChartDataAdapter>
</dxm:VectorLayer>
See Also
How to: Load Data from a Shapefile
How to: Load Data from a KML File
How to: Load Data from a SQL Geometry Datasource
How to: Manually Generate Vector Items
How to: Automatically Generate Vector Items from a Datasource
How to: Automatically Generate Pie Chart Items from a Datasource