Hi, I have to detail my problem. I'm creating a component full actionscript. This component create a CartesianChart adding some functionalities.
here is the source code var tAxis:DateTimeAxis=new DateTimeAxis(); tAxis.alignLabelsToUnits=true; tAxis.autoAdjust=true; tAxis.dataUnits="minutes"; tAxis.labelUnits="days"; tAxis.displayLocalTime=true; tAxis.baseAtZero=false; this.horizontalAxis=tAxis; var lAxis:LinearAxis=new LinearAxis(); lAxis.alignLabelsToInterval=true; lAxis.autoAdjust=true; lAxis.baseAtZero=false; this.verticalAxis=lAxis; var slAxis:LinearAxis=new LinearAxis(); slAxis.alignLabelsToInterval=true; slAxis.autoAdjust=true; slAxis.baseAtZero=false; this.secondVerticalAxis=slAxis; this.secondVerticalAxisRenderer=new AxisRenderer(); For informations, after this code, I retrieve the series (line). The baseAtZero doesn't work. I've tried an other sample custom chart and it wors properly BUT the baseAtZero property can NOT be modified at run time. Here is the code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"> <mx:Script> <![CDATA[ import mx.charts.LinearAxis; function test():void{ //var t:LinearAxis=TestAxis (r).nChart.verticalAxis; LinearAxis(TestAxis (r).nChart.verticalAxis).baseAtZero=true; LinearAxis(TestAxis (r).nChart.verticalAxis).update(); } ]]> </mx:Script> <local:TestAxis id="r"/> <mx:Button x="147" y="432" label="Button" click="test()"/> </mx:Application> Thank in advance, it is very critical for me olivier --- In [email protected], "trader230" <[EMAIL PROTECTED]> wrote: > > Hi Olivier - > > 'baseAtZero' sets the minimum to zero (if your data are all >=0) or > the maximum to zero (if the data are < 0). > > Choices for setting the axis range are > a) let the chart decide min and max; > b) set them yourself. > > If you want to use baseAtZero="true" (with choice (a)), it will set > the minimum to 0: > > > Perhaps I'm missing your problem, in which case, in addition to sample > code, could you also describe more about what you are trying to do ? > > Hope this helps; looking forward to your post. > > --Brian > > --- In [email protected], "olivier" <olivier-ext.ratard@> > wrote: > > > > Hi, > > > > I've a critical problem when I want to code in actionscript a chart > > with a linearxis. Indeed, all propertie can be set but the baseAtZero > > doesn' t work properly. It computes the maximum value but the minimum > > value is always 0. I've tried with several different series without any > > success. > > > > I found the same topics on others forums but nobody can bring an answer > > to this problem. > > > > I'm blocked on this aspect. > > > > Is anybody has an example or guidelines (for example, this property > > must be set before one other etc..) to solve this problem ? > > > > Thank you in advance > > > > O. > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

