[flexcoders] Line chart with no axes

2009-08-06 Thread Richard Rodseth
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(...)}

Re: [flexcoders] Line chart with no axes

2009-08-06 Thread Vivian Richard
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

Re: [flexcoders] Line chart with no axes

2009-08-06 Thread Richard Rodseth
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

Re: [flexcoders] Line chart with no axes

2009-08-06 Thread Vivian Richard
Do you think that you get this gap, because there is another axis there? By the way as I understand you need 2 axises - left and right - then why are you adding another axis on left and then rendering. Why not just render the axis that comes with the chart? On Thu, Aug 6, 2009 at

Re: [flexcoders] Line chart with no axes

2009-08-06 Thread Richard Rodseth
The chart has two sets of dynamically-generated series A B, one associated with the left axis, one with the right. There are two checkboxes controlling the visibility. I would like each checkbox to remove the corresponding series set, and corresponding axis. So you can view none, A (left), B

Re: [flexcoders] Line chart with no axes

2009-08-06 Thread Vivian Richard
Try this code it does make the axis invisible: ?xml version=1.0? !-- charts/StyledMultipleAxes.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var SMITH:ArrayCollection = new

Re: [flexcoders] Line chart with no axes

2009-08-06 Thread Richard Rodseth
Yes, that's pretty much what I've got now. It's not bad (and some might even prefer not having the chart re-layout to occupy the freed up space when an axis is hidden). Thanks. On Thu, Aug 6, 2009 at 3:16 PM, Vivian Richard kanps...@gmail.com wrote: Try this code it does make the axis

Re: [flexcoders] Line chart with no axes

2009-08-06 Thread Vivian Richard
You can set the left and the right gutter to 0 to make the gap smaller and also making the axis not that thick. On Thu, Aug 6, 2009 at 3:28 PM, Richard Rodsethrrods...@gmail.com wrote: Yes, that's pretty much what I've got now. It's not bad (and some might even prefer not having the