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

    Invisible chart-axis "wasting" space?

      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">
      import mx.collections.ArrayCollection;
      public var dColl:ArrayCollection = new ArrayCollection([
      {a:"a", b:10, c:20}
      <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:AxisRenderer includeInLayout="false" visible="false"/>
      <mx:AxisRenderer includeInLayout="false" visible="false"/>
      <mx:Box visible="false" includeInLayout="false"/>
      <mx:GridLines visible="false" includeInLayout="false"/>
      <mx:BarSet type="stacked">
      <mx:BarSeries width="100%" displayName="Series 1" xField="b"/>
      <mx:BarSeries width="100%" displayName="Series 2" xField="c"/>
      <mx:Label text="BBBB"/>

      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?