Hi,

I have a pie chart (could have fooled be based on the output!) that is
being displayed incorrectly, as you can see below.



The datagrid view is correct:



Here is my mxml:
<mx:PieChart id="pieDP" showDataTips="true" width="100%" height="100%"
                     dataProvider="{_dpXMLList}"
                     itemClick="explodeSlice(event.hitData.item)"
doubleClickEnabled="true"
                     itemDoubleClick="changeView(event.hitData.item)"
                     dataTipFunction="formatDataTip"
resizeEffect="{resize}">

                     <mx:series>
                         <mx:Array>
                             <mx:PieSeries id="ps" field="@totalDevices"
                                 nameField="@name"
                                 labelPosition="callout"
                                 labelFunction="getSliceLabel"
                                 showDataEffect="{interpolate}"
                                 fills="{pieColors}">
                             </mx:PieSeries>
                         </mx:Array>
                     </mx:series>
                 </mx:PieChart>

Here is the result of tracing my dataProvider:
<devicePool name="BACKUP2" totalDevices="0" totalRegDevices="0">
   <srstReference>Disable</srstReference>
   <registeredPhones>0</registeredPhones>
   <registeredCTIPorts>0</registeredCTIPorts>
   <registeredGateways>0</registeredGateways>
   <registeredMediaDevices>0</registeredMediaDevices>
   <registeredVmailPorts>0</registeredVmailPorts>
   <totalPhones>1</totalPhones>
   <totalCTIPorts>0</totalCTIPorts>
   <totalGateways>0</totalGateways>
   <totalMediaDevices>0</totalMediaDevices>
   <totalVmailPorts>0</totalVmailPorts>
</devicePool>

The piechart's dataProvider is set based on what leaf of a tree is
selected in another panel.  My pie chart displays correctly for other
leafs, but this leaf always produces a 'broken' pie chart.  I have
compared the chart's dataProvider values for other leafs selected and I
can't seem to figure out why this is breaking here.

Is this a bug in Flex Charting?

-phil


Reply via email to