<esri:InfoSymbol id="infoSymbol1"> <esri:infoRenderer> <mx:Component> <mx:VBox > <mx:Label text="{data.getItemAt(0).myphone}"/> <mx:PieChart id="pieChart" dataProvider="{data}" width="60" height="60"> <mx:series> <mx:PieSeries field="VALUE" nameField="AGE" labelPosition="inside" > </mx:PieSeries> </mx:series> </mx:PieChart> </mx:VBox> </mx:Component> </esri:infoRenderer> </esri:InfoSymbol>public function addsymbol():void{ var myGraphic:Graphic=new Graphic(new MapPoint(100,50)); myGraphic.symbol=infoSymbol1; var attribs:ArrayCollection=new ArrayCollection([{myphone: "123",VALUE:23,AGE:old},{myphone: "2345",VALUE:78,AGE:new} ]); myGraphic.attributes=attribs; myGraphicsLayer.add(myGraphic); }
private function addsymbol():void{ var myGraphic:Graphic=new Graphic(new MapPoint(100,50)); myGraphic.symbol=infoSymbol; var attribs:ArrayCollection=new ArrayCollection([{myphone: "123",AGE: "New", VALUE: 23},{myphone: "2345",AGE: "Old", VALUE: 78}]); myGraphic.attributes=attribs; myGraphicsLayer.add(myGraphic); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.