[flexcoders] Re: criticla problem charting component - coding axis
Hi all! Thank you for your help ! I finally found the problem: The series creation was wrong : my way : aa:AreaSet=new AreaSet(); aa.series=new Array(); //--inserting series this.series=aa; correct way: aa:AreaSet=new AreaSet(); aa.series=[]; //--inserting series this.series=aa; Using this way, all my problems are resolved. series=new Array()- series=[]; Lack of documentation ? Olivier --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Hi Olivier. it's hard to diagnose your problem, or even what behavior you're seeing, without a more details description of what you're trying to do, what you're doing, and what the actual behavior you're seeing is. Sample code would help too. Flex 1, or Flex 2? Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of olivier Sent: Wednesday, September 13, 2006 2:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] criticla problem charting component - coding axis 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/
RE: [flexcoders] Re: criticla problem charting component - coding axis
Hmmm. That shouldn't work either. It should be: this.series = [aa]; Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of olivierSent: Tuesday, September 19, 2006 1:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: criticla problem charting component - coding axis Hi all!Thank you for your help !I finally found the problem:The series creation was "wrong" :my way :aa:AreaSet=new AreaSet();aa.series=new Array();//--inserting seriesthis.series=aa;correct way:aa:AreaSet=new AreaSet();aa.series=[];//--inserting seriesthis.series=aa;Using this way, all my problems are resolved.series=new Array()- series=[];Lack of documentation ?Olivier--- In [EMAIL PROTECTED]ups.com, "Ely Greenfield" [EMAIL PROTECTED]. wrote: Hi Olivier. it's hard to diagnose your problem, or even what behavior you're seeing, without a more details description of what you're trying to do, what you're doing, and what the actual behavior you're seeing is. Sample code would help too. Flex 1, or Flex 2? Ely. From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of olivier Sent: Wednesday, September 13, 2006 2:11 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] criticla problem charting component - coding axisHi, 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 SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: criticla problem charting component - coding axis
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 flexcoders@yahoogroups.com, 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 flexcoders@yahoogroups.com, 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/
RE: [flexcoders] Re: criticla problem charting component - coding axis
Thanks for the addiitional imformation Olivier. Can you send a small, complete compilable/runnable sample so I can try it out myself? Thanks. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of olivierSent: Thursday, September 14, 2006 9:07 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: criticla problem charting component - coding axis 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 codevar 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:Scriptlocal:TestAxis id="r"/mx:Button x="147" y="432" label="Button" click="test()"//mx:ApplicationThank in advance, it is very critical for meolivier--- In [EMAIL PROTECTED]ups.com, "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]ups.com, "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 advanceO. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: criticla problem charting component - coding axis
Hi Olivier - This turns out to be a bug in Charts, which we've entered. (Thanks for pointing it out!) There is, fortunately, a workaround: to the code that you have, tAxis.baseAtZero=false also add this line: tAxis.autoAdjust = taxis.autoAdjust; That should force the redraw. Hope this helps. --Brian --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Thanks for the addiitional imformation Olivier. Can you send a small, complete compilable/runnable sample so I can try it out myself? Thanks. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of olivier Sent: Thursday, September 14, 2006 9:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: criticla problem charting component - coding axis 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 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 flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , trader230 bolaughl@ 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 flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 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/
[flexcoders] Re: criticla problem charting component - coding axis
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 flexcoders@yahoogroups.com, olivier [EMAIL PROTECTED] 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/