In the sample the xaml is setup as such:
<m:Map Mode="Road" Name="bingmap"> <d3:BingMapsPlot Name="plot"> <d3:CircleMarkerGraph Name="markers" ColorDescription="Crop density" Size="6" YDataTransform="{Binding YDataTransform, ElementName=plot}" ClipToBounds="False" /> </d3:BingMapsPlot> </m:Map>
However I couldn’t get the plot to look right on the map and the GetParentMap function returned null until I added:
<m:Map Mode="Road" Name="bingmap"> <d3:BingMapsPlot Name="plot" Tag="{Binding ElementName=bingmap}" > <d3:CircleMarkerGraph Name="markers" ColorDescription="Crop density" Size="6" YDataTransform="{Binding YDataTransform, ElementName=plot}" ClipToBounds="False" /> </d3:BingMapsPlot> </m:Map>