I don't think that's it. Seems others have the same issue: http://www.nabble.com/flex-charts:-disable-default-verticalAxisRenderer-issue-td22309463.html
Even if I do what that thread suggests as below, I get a gap on the left when the right axis is added. private function buildAxisRenderers(showLeftAxis:Boolean, showRightAxis:Boolean):Array { // Workaround var verticalAxisRenderer:AxisRenderer = new AxisRenderer(); verticalAxisRenderer.visible = false; verticalAxisRenderer.height = 0; verticalAxisRenderer.width = 0; verticalAxisRenderer.setStyle("showLabels", false); lineChart.verticalAxisRenderer = verticalAxisRenderer; if (showLeftAxis && showRightAxis) return [ leftAxisRenderer, rightAxisRenderer]; if (showLeftAxis && !showRightAxis) return [ leftAxisRenderer ]; if (showRightAxis && !showLeftAxis) return [ rightAxisRenderer ]; return [ ]; } On Thu, Aug 6, 2009 at 12:45 PM, Vivian Richard <kanps...@gmail.com> wrote: > > > I guess you are adding an additional axis. As you know if you > do not define your axis and put an id for it. The chart will add > the default axis. Now do not do it that way declare both axis > and then tie up the axis renderer with it. I guess that will resolve > you issue. > > Here you can see the example: > http://livedocs.adobe.com/flex/3/langref/mx/charts/AxisRenderer.html > > > On Thu, Aug 6, 2009 at 11:52 AM, Richard > Rodseth<rrods...@gmail.com<rrodseth%40gmail.com>> > wrote: > > > > > > I have a line chart where the user can show/hide the left and right axes > > (which have custom colours) and the corresponding series. > > > > <mx:LineChart > > dataProvider="{...}" > > verticalAxisRenderers="{this.buildAxisRenderers(...)}" > > series="{this.buildSeriesList(...)}" > > > > > > > Works fine, except I get two left axes, my custom one and the default > > grey one which never goes away. Any ideas? Thanks in advance. > > > > > > > >