We need to create a graphics layer symbol as piechart
Thanks diligentpig.
2nd and 3rd option which you have mentioned seems to be usefull in my case.Can you please share some code base if you have anything handy or provide some Suggestion on how to do that.
Thanks
Thank you, The Chinese blog bring the purpose.
<esri:Map x:Name="mapView" Extent="-96,33,-86,30"> <esri:Map.Layers> <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" /> <esri:FeatureLayer ID="StatesPolygonFeatureLayer" Url="http://myserver/ArcGIS/rest/services/Maps/CM/MapServer" FeatureSymbol="{StaticResource LightFillSymbol}" UpdateCompleted="FeatureLayer_UpdateCompleted"> <esri:FeatureLayer.OutFields> <system:String>COUNTY</system:String> <system:String>BLACK</system:String> <system:String>WHITE</system:String> </esri:FeatureLayer.OutFields> <esri:FeatureLayer.MapTip> <Grid> <Grid.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#AA333333"/> <GradientStop Color="#AAEEEEEE" Offset="1"/> </LinearGradientBrush> </Grid.Background> <pieChartSymbology:PieChartMapTip Name="pieChart" ChartTitle="{Binding [COUNTY], Mode=OneWay}" LegendTitle="Legend"> <pieChartSymbology:PieChartMapTip.PieElements> <pieChartSymbology:PieElement FieldName="BLACK" DisplayName="BLACK" /> <pieChartSymbology:PieElement FieldName="WHITE" DisplayName="WHITE" /> </pieChartSymbology:PieChartMapTip.PieElements> </pieChartSymbology:PieChartMapTip> </Grid> </esri:FeatureLayer.MapTip> </esri:FeatureLayer> <esri:GraphicsLayer ID="StatesCentroidGraphicsLayer"/> </esri:Map.Layers> </esri:Map>
Sorry, there is no ready to use code for this two methods now. But you can read following related links, hope this will be helpful.
For method 2, please reference to online symbol gallery to look at how to custom a map symbol.
http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm
For method 3, here is a sample to demonstrate how to add UIElement to ElementLayer in xaml, you can also do this in code. And just consider your chart control as an UIElement.
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ElementLayer
Here is a Chinese blog showing the final image of the two methods. http://blog.newnaw.com/?p=480
<esri:FeatureLayer ID="StatesPolygonFeatureLayer"
Url="http://myserver/ArcGIS/rest/services/Maps/CM/MapServer"