2011-10-27 4 views

답변

1

어도비 LiveDocs의 기반으로, 간단한 예입니다 :

는하지만,주의, unproperly 렌더링하는 등의 일련의 툴팁이 발생 플렉스 계열의 개개의 버그가 있습니다. 계열의 개개가 (정확한) 높은 값의 항목의 yField 값을 표시하지만, 그것은 낮은 값에 대해 동일한 값을 표시 (라인 2058 및 AreaSeries.as의 2,083) ...

enter image description here

<?xml version="1.0"?> 

<fx:Script> 
    <![CDATA[ 

    import mx.collections.ArrayCollection; 

    [Bindable] 
    private var expensesAC:ArrayCollection = new ArrayCollection([ 
     { Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450 }, 
     { Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600 }, 
     { Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300 }, 
     { Month: "Apr", Profit: 1800, Expenses: 1200, Amount: 900 }, 
     { Month: "May", Profit: 2400, Expenses: 575, Amount: 500 } ]); 
    ]]> 
</fx:Script> 

<fx:Declarations> 
    <mx:SolidColor id="sc3" color="green" alpha=".3"/> 
</fx:Declarations> 

    <mx:AreaChart id="Areachart" height="100%" width="100%" 
     paddingLeft="5" paddingRight="5" 
     showDataTips="true" dataProvider="{expensesAC}"> 

     <mx:horizontalAxis> 
      <mx:CategoryAxis categoryField="Month"/> 
     </mx:horizontalAxis> 

     <mx:series> 
      <mx:AreaSeries 
       yField="Profit" 
       minField="Expenses" 
       areaFill="{sc3}"/> 
     </mx:series> 
    </mx:AreaChart> 

+0

덕분에 많은 사람이 내가 필요 정확히이었다. 죄송하지만 지금까지 대답하지 않았습니다. 당신은 내가 [여기] (http://stackoverflow.com/questions/7923954/finished-break-even-areachart-but-can-investors-understand-it)로 끝난 것을 볼 수 있습니다. –