AreaChart : Area Chart « Chart « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Chart » Area ChartScreenshots 
AreaChart
AreaChart
        
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  backgroundColor="#EEEEEE" layout="horizontal">

  <mx:Style>
    @namespace mx "http://www.adobe.com/2006/mxml";
    mx|AreaSeries {
      stroke-width:2;
      stroke-color:black;
      fills:#333333,#999999,#CCCCCC;
    }
    
  </mx:Style>

  <mx:Model id="trendModel">
<data>
    <row>
      <quarter>Q1 2010</quarter>
      <sales>1</sales>
    </row>
    <row>
      <quarter>Q2 2010</quarter>
      <sales>4</sales>
    </row>
    <row>
      <quarter>Q3 2010</quarter>
      <sales>2</sales>
    </row>
    <row>
      <quarter>Q4 2010</quarter>
      <sales>3</sales>
    </row>
</data>
  </mx:Model>  
  <mx:ArrayCollection id="trendData" source="{trendModel.row}"/>

  <mx:Panel title="Area Chart" height="100%" width="100%">
    <mx:AreaChart dataProvider="{trendData}"
      height="100%" width="100%">
      <mx:horizontalAxis>
        <mx:CategoryAxis dataProvider="{trendData}" categoryField="quarter"/>
      </mx:horizontalAxis>
      <mx:series>
        <mx:AreaSeries xField="quarter" yField="sales"/>
      </mx:series>
    </mx:AreaChart>
  </mx:Panel>

</mx:Application>

   
    
    
    
    
    
    
    
  
Related examples in the same category
1.Area chart with AreaSeries and CategoryAxisArea chart with AreaSeries and CategoryAxis
2.Legend for AreaChartLegend for AreaChart
3.Set CategoryAxis for AreaChartSet CategoryAxis for AreaChart
4.Basic Area One Series for AreaChartBasic Area One Series for AreaChart
5.Basic AreaChartBasic AreaChart
6.Create an AreaChart controlCreate an AreaChart control
7.Define three custom SolidColor objects and three custom SolidColorStroke objects, and applies them to the three AreaSeries objects in the AreaChart controlDefine three custom SolidColor objects and three custom SolidColorStroke objects, and applies them to the three AreaSeries objects in the AreaChart control
8.Area Chart with Area seriesArea Chart with Area series
9.Define an area chart in which each series in the chart uses a solid fill with the same level of transparency:Define an area chart in which each series in the chart uses a solid fill with the same level of transparency:
10.Stacked Area ChartStacked Area Chart
11.Setting a value for the minField property creates two values on the axis for each data point in an areaSetting a value for the minField property creates two values on the axis for each data point in an area
w__ww__.j___a___va2__s_.___c_o__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.