3 Replies Latest reply on Nov 2, 2007 10:10 AM by Mush15

    Invisible chart-axis "wasting" space?

      Hi,
      I'm trying to get rid of the axes of a (stacked) bar-chart. Making the axes invisible and "exclude" them from layout was easy, but the axes still seem to occupy some space in the layout:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
      <![CDATA[
      import mx.collections.ArrayCollection;
      public var dColl:ArrayCollection = new ArrayCollection([
      {a:"a", b:10, c:20}
      ]);
      ]]>
      </mx:Script>
      <mx:Panel x="10" y="10" width="687" height="234" layout="absolute" title="Too much space ...">
      <mx:HBox height="80" left="0" right="0" verticalAlign="middle" borderThickness="1" borderStyle="solid">
      <mx:Label text="AAAA"/>
      <mx:BarChart id="barchart1" width="100%" height="100%" dataProvider="{dColl}">
      <mx:verticalAxis>
      <mx:CategoryAxis/>
      </mx:verticalAxis>
      <mx:verticalAxisRenderer>
      <mx:AxisRenderer includeInLayout="false" visible="false"/>
      </mx:verticalAxisRenderer>
      <mx:horizontalAxisRenderer>
      <mx:AxisRenderer includeInLayout="false" visible="false"/>
      </mx:horizontalAxisRenderer>
      <mx:backgroundElements>
      <mx:Box visible="false" includeInLayout="false"/>
      <mx:GridLines visible="false" includeInLayout="false"/>
      </mx:backgroundElements>
      <mx:series>
      <mx:BarSet type="stacked">
      <mx:BarSeries width="100%" displayName="Series 1" xField="b"/>
      <mx:BarSeries width="100%" displayName="Series 2" xField="c"/>
      </mx:BarSet>
      </mx:series>
      </mx:BarChart>
      <mx:Label text="BBBB"/>
      </mx:HBox>
      </mx:Panel>
      </mx:Application>

      I would like position the chart closer to the label on the left, but some (sub-?)component of the chart is "wasting" space on the left (and bellow).

      Does someone know how you can reduce the occupied space?

      TIA

      Uwe