Hi Team I am trying to use LogAxis with the LineChart. I have attached the piece of code. If i change the axis to Linear Axis it works but if i chnage to LogAxis it fails. Can anybody let me know why????
Thanks ilikeflex <?xml version="1.0" ?> <!-- Simple example to demonstrate the ColumnChart and BarChart controls. --> <mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml"> <mx:Script> <![CDATA[ import mx.collections. ArrayCollection; [Bindable] private var medalsAC:ArrayColle ction = new ArrayCollection( [ { Country: "MarketAxess" , Gold: 4.697984612668698E1 0, Silver:1.3487203441 938508E9, Bronze: 29 }, { Country: "BondVision" , Gold: 8.977944486078036E1 0, Silver:9.4494483797 32164E9, Bronze: 29 }, { Country: "BondsOnline" , Gold: 1.5702416021476257E 10, Silver:7.5100179636 33844E9, Bronze: 14 }, { Country: "Reuters", Gold: 8.85010640882272E9, Silver:0, Bronze: 14 }, { Country: "BondDesk", Gold: 2.454769212781226E1 0, Silver:7.8767369614 43998E8, Bronze: 14 }, { Country: "TWEB", Gold: 1.0921398765041035E 12, Silver:0, Bronze: 14 }, { Country: "BBG", Gold: 4.648826681492625E1 1, Silver:1.0007554793 31196E11, Bronze: 38 } ]); ]]> </mx:Script> <mx:Panel title="ColumnChart and BarChart Controls Example" height="100% " width="100%" layout="horizontal" > <mx:LineChart id="column" height="100% " width="45%" paddingLeft= "5" paddingRight= "5" showDataTips= "true" dataProvider= "{medalsAC} "> <mx:horizontalAxis> <mx:CategoryAxis categoryField= "Country" /> </mx:horizontalAxis > <mx:verticalAxis> <!-- <mx:LogAxis interval="10" /> --> <mx:LinearAxis/ > </mx:verticalAxis> <mx:series> <mx:LineSeries xField="Country" yField="Gold" displayName= "Gold"/> <mx:LineSeries xField="Country" yField="Silver" displayName= "Silver"/ > <mx:LineSeries xField="Country" yField="Bronze" displayName= "Bronze"/ > </mx:series> </mx:LineChart> <mx:Legend dataProvider= "{column} "/> </mx:Panel> </mx:Application>