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
__,_._,___