<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml " layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable] public var d1:ArrayCollection = new ArrayCollection([
{x:1,y:10},{x:2,y:20},{x:3,y:30},{x:4,y:40},
{x:5,y:50},{x:6,y:60},{x:7,y:70},{x:8,y:80}]);
[Bindable] public var d2:ArrayCollection = new ArrayCollection([
{x:1,y:80},{x:2,y:70},{x:3,y:60},{x:4,y:50},
{x:5,y:40},{x:6,y:30},{x:7,y:20},{x:8,y:10}]);
]]>
</mx:Script>
<mx:ColumnChart id="myChart" type="stacked">
<mx:SeriesInterpolate id="interp" duration="1000" minimumElementDuration="200" elementOffset="0"/>
<mx:series>
<mx:ColumnSeries id="s1" xField="x" yField="y" dataProvider="{d1}" showDataEffect="interp">
<mx:fill>
<mx:SolidColor color="0x00FF00"/>
</mx:fill>
</mx:ColumnSeries>
<mx:ColumnSeries id="s2" xField="x" yField="y" dataProvider="{d2}" showDataEffect="interp">
<mx:fill>
<mx:SolidColor color="0xFF0000"/>
</mx:fill>
</mx:ColumnSeries>
</mx:series>
</mx:ColumnChart>
<mx:Button x="10" y="408" label="<<" click=" s1.dataProvider = d2; s2.dataProvider = d1"/>
<mx:Button x="83" y="408" label=">>" click="s2.dataProvider = d2; s1.dataProvider = d1"/>
</mx:Application>
--
Jason __._,_.___
--
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
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.