0 Replies Latest reply on Mar 7, 2007 12:16 PM by beckerb4

    Scatterplot with 1 point and negative axis fails

    beckerb4 Level 1
      I'm attaching a simple reproducible case below.
      If you run in IE it will crash after running out of memory.
      If running in the Flash player outside of IE, it times out and gives this exception:
      Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
      at mx.core::UITextField/validateNow()
      at mx.core::UITextField/set htmlText()
      at mx.charts::AxisRenderer/::processAxisLabels()
      at mx.charts::AxisRenderer/::measureLabels()
      at mx.charts::AxisRenderer/::calcRotationAndSpacing()
      at mx.charts::AxisRenderer/adjustGutters()
      at mx.charts.chartClasses::CartesianChart/::updateAxisLayout()
      at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDispl ayList()
      at mx.core::UIComponent/validateDisplayList()
      at mx.managers::LayoutManager/::validateDisplayList()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      In my example the x axis goes from -34,000,000 to zero and the y axis has a similar range.
      There is only one point.

      <!--<?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      xmlns:mx=" http://www.adobe.com/2006/mxml"
      layout="absolute" pageTitle="Experiments in Flex Charting"
      width="100%" height="100%" >

      <mx:Script> <![CDATA[
      import mx.formatters.NumberFormatter;
      import mx.collections.*;
      import mx.charts.*

      [Bindable]
      private var expenses:ArrayCollection = new ArrayCollection([
      {Month: "Jan", Profit: -34000000, Expenses: -74000000},
      ]);
      ]]>
      </mx:Script>

      <mx:HBox height="100%" width="100%">
      <mx:BubbleChart id="scatter2" paddingLeft="5" height="100%" width="100%"
      paddingRight="5" dataProvider="{expenses}" showDataTips="true">
      <mx:horizontalAxis>
      <mx:LinearAxis baseAtZero="false" title="Profit" />
      </mx:horizontalAxis>
      <mx:verticalAxis>
      <mx:LinearAxis baseAtZero="false" title="Expenses"/>
      </mx:verticalAxis>
      <mx:series>
      <mx:Array>
      <mx:PlotSeries xField="Expenses" yField="Profit" name="Expenses/Profit" />
      </mx:Array>
      </mx:series>
      </mx:BubbleChart>
      </mx:HBox>
      </mx:Application> -->