Select to view content in your preferred language

Create Chart Symbol:MapTips

785
2
04-17-2013 09:10 AM
EricCreahi
Emerging Contributor
Hi!
I try to create Chart symbol:MapTip.

simple code XAML without Code Behind.

 <!--Map Layers-->
            <esri:ArcGISTiledMapServiceLayer ID="BaseMap" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>

            <esri:FeatureLayer ID="quakes" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/2" >
                 <esri:FeatureLayer.OutFields>
                   <System:String>STATE_NAME</System:String>
                   <System:String>POP1990</System:String>
                 </esri:FeatureLayer.OutFields>
                
                <esri:FeatureLayer.MapTip>
                    <Grid>
                        <charting:Chart>
                                              
                        <charting:PieSeries  IndependentValueBinding="{Binding STATE_NAME}" DependentValueBinding="{Binding POP1990}" ItemsSource="{Binding Source={StaticResource MyChartStyle}}"  />
                        
                        </charting:Chart>
                    </Grid>
                </esri:FeatureLayer.MapTip>
                

            </esri:FeatureLayer>


It's working but no Pie .
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
It's working but no Pie

In your code we don't see how is defined the staticresource used for initializing the itemssource of your pieseries.
But anyway there is no chance that a static binding works.
You have to bind to the current attributes of the underlying graphics. As there is no easy way to do it directly, you need a small piece of code suc as a converter..
This pie chart maptips sample demonstrates how to do that.
0 Kudos
EricCreahi
Emerging Contributor
Thanks for  this  simple sample
0 Kudos