Modifying a flex column chart
hi there,
i'm trying change x axis have 4 bars measure categories. bars show up, , track data, thin , in far left quadrent.
chart
<mx:columnchart id="categorychart" height="137" color="0x323232" showdatatips="true" width="272" y="213"> <mx:horizontalaxis> <mx:categoryaxis categoryfield="category"/> </mx:horizontalaxis> <mx:series> <mx:columnseries yfield="health" name="health" width="100"/> <mx:columnseries yfield="industrial"/> <mx:columnseries yfield="emerging"/> <mx:columnseries yfield="food"/> </mx:series> </mx:columnchart> <mx:legend id="categorylegend" color="0x323232" y="358" x="10" width="280" direction="horizontal"/>
vars
private var health:int = 0; private var industrial:int = 0; private var emerging:int = 0; private var food:int = 0;
arraycollection
var categoryac:arraycollection = new arraycollection([ {health: health, industrial: industrial, emerging: emerging, food: food} ])
also, how animate data when changes?
hi,
to adjust width of columns set columnwidthratio property of series.
for animating changes use showdataeffect , hidedataeffect
http://livedocs.adobe.com/flex/3/langref/mx/charts/chartclasses/series.html#effect:hidedat aeffect
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment