Is it possible to tell flex to display a chart with no visible axis? I want the contents of the chart to take up all the available space. I can set the visibility on the AxisRenderer to false which will hide the axis but that leaves an empty space where the axis would usually be. How can I remove this empty space?
<mx:horizontalAxis>
<mx:DateTimeAxis id="xAxis" dataUnits="hours" />
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer axis="{xAxis}" visible="false" height="0" />
</mx:horizontalAxisRenderers>
I’ve tried setting the height on the renderer but that has no effect, and there is no height style on the axis itself.
This goes for all flex components –
visible='false'makes them disappear from the view. But they are actually still there, not being drawn, but taking place. There’s a second parameter calledincludeInLayoutwhich, when set to false, makes them stop taking place.