Flash Builder 4.6/ LineChart predefined unlinear y-Scale


hi!

i'm looking solution set predefined unlinear scale y-axis of linechart.

my scale has various steps depend on current value shown in linechart.(betting odd)

 

value: 1-2 ; interval = 0.01;

value 2-3;interval=0.02;

value3-4;interval=0.05;

value4-6;interval=0.1;

value6-10,interval=0.2;

value 10-20,interval=0.5;

value20-30,interval=1;

value30-50,interval=3;

value50-100,interval=5;

value100-1000,interval=10

 

i've tried set current interval via function

 

setcurrentinterval(currentodd)

{

if(currentodd>=1&&currentodd<2)

{oddscale.interval=0.01

}

if(currentodd>=2&&currentodd<3)

{oddscale.interva=0.02

}

 

}

 

<mx:verticalaxis>

                                        <mx:linearaxis id="oddscale"

                                                                         minimum="1"

                                                                         maximum="{max}" >

                                         </mx:linearaxis>

</mx:verticalaxis>

 

this way works, whole y-scale depends on "interval" , shown values set in same intervall. small intervals 0.01 not shown.

 

is there way predefine unlinear y-axis scale?

 

var odds:array=[1,1.01,1.02.....2,2.02,2.04...3,3.05]

 

scale:dataprovider=new arraycollection(odds.source)

 

some ideas out there???

 

kind regards

jewtis



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support