2 Replies Latest reply on Feb 27, 2008 9:42 PM by san00001

    piechart radius problem

    san00001 Level 1
      I am generating dynamic piecharts in flex.Depends upon the datas the radius of pichart is changing.If the value is higher the charts are apperaing larger,if the value is small then charts are displaying in smaller size.I want to give fixed radius.I used OuterRadius property in pieseries but its not working.is there any other way?pls help me.
        • 1. Re: piechart radius problem
          Gregory Lafrance Level 6
          Can you provide simplified code example. The following code has fixed size pie chart no matter what the data values are.

          <?xml version="1.0"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
          <mx:Script><![CDATA[
          import mx.collections.ArrayCollection;
          [Bindable]
          public var expenses:ArrayCollection = new ArrayCollection([
          {Expense:"Taxes", Amount:12000},
          {Expense:"Rent", Amount:11000},
          {Expense:"Bills", Amount:1100},
          {Expense:"Car", Amount:4150},
          {Expense:"Gas", Amount:1100},
          {Expense:"Food", Amount:1200}
          ]);
          ]]></mx:Script>
          <mx:Panel title="Pie Chart">
          <mx:PieChart id="myChart"
          dataProvider="{expenses}"
          showDataTips="true"
          >
          <mx:series>
          <mx:PieSeries
          field="Amount"
          nameField="Expense"
          labelPosition="callout"
          />
          </mx:series>
          </mx:PieChart>
          </mx:Panel>
          </mx:Application>

          • 2. Re: piechart radius problem
            san00001 Level 1
            The same problem is happening for bar and column chart.Actually i am generating charts dynamically.Depends upon the data the size of chart is changing