1 Reply Latest reply on Aug 29, 2008 2:31 AM by Newsgroup_User

    LinearAxis's  bug ?

    cmd1996
      Hi All
      When i used ColumnChart component, i find if data is a big negative number,mx.charts.LinearAxis's adjustMinMax method computed a error computedInterval. How can i resolve the problem? Thanks.
      Test case like this:

      <?xml version="1.0"?>
      <!-- charts/BasicColumn.mxml -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Script><![CDATA[
      import mx.collections.ArrayCollection;
      import mx.charts.LinearAxis;
      import mx.controls.Alert;
      [Bindable]
      public var expenses:ArrayCollection = new ArrayCollection([
      {Month:"Jan", Profit:-16401640, Expenses:1500},
      {Month:"Feb", Profit:-16401640, Expenses:1500}
      ]);
      ]]></mx:Script>
      <mx:Panel title="Column Chart">
      <mx:ColumnChart id="myChart" dataProvider="{expenses}" showDataTips="true">
      <mx:horizontalAxis>
      <mx:CategoryAxis id="ca"
      dataProvider="{expenses}"
      categoryField="Month"
      />
      </mx:horizontalAxis>
      <mx:series>
      <mx:ColumnSeries id="columnSeries" xField="Month"
      yField="Profit" displayName="Profit" />
      </mx:series>
      </mx:ColumnChart>
      <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
      </mx:Application>