Add a second tag to display two data series for Pie Chart : Pie 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 » Pie ChartScreenshots 
Add a second tag to display two data series for Pie Chart
Add a second <mx:AreaSeries> tag to display two data series for Pie Chart
          

<!--
Code from Flex Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1proper attribution to Adobe is given as the owner of the user guide; and 
  (2any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Script>
    import mx.collections.ArrayCollection;
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
      {Month:"Jan", Profit:20, Expenses:15, Amount:45},
      {Month:"Feb", Profit:1,  Expenses:20, Amount:60},
      {Month:"Mar", Profit:15, Expenses:, Amount:3}
      ]);
    </mx:Script>
  <mx:Panel title="Area Chart">
    <mx:AreaChart id="myChart" dataProvider="{expenses}"
      showDataTips="true">
      <mx:horizontalAxis>
        <mx:CategoryAxis dataProvider="{expenses}" categoryField="Month" />
      </mx:horizontalAxis>
      <mx:series>
        <mx:AreaSeries yField="Profit" displayName="Profit" />
        <mx:AreaSeries yField="Expenses" displayName="Expenses" />
      </mx:series>
    </mx:AreaChart>
    <mx:Legend dataProvider="{myChart}" />
  </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Pie chart with two seriesPie chart with two series
2.Pie Chart DemoPie Chart Demo
3.SeriesSlide effect for Pie chartSeriesSlide effect for Pie chart
4.Create a pie chartCreate a pie chart
5.Set horizonta lAxis and Area Series for Pie ChartSet horizonta lAxis and Area Series for Pie Chart
6.To explode all wedges of a pie chart evenly, you use the explodeRadius property on the PieSeriesTo explode all wedges of a pie chart evenly, you use the explodeRadius property on the PieSeries
7.Pie chart inner radiusPie chart inner radius
8.The following example defines a PieChart control:The following example defines a PieChart control:
9.To create a doughnut chart, specify the innerRadius property on the PieChart controlTo create a doughnut chart, specify the innerRadius property on the PieChart control
10.creates a PieChart that uses only red, white, and blue colors for the wedges:creates a PieChart that uses only red, white, and blue colors for the wedges:
11.Add a drop shadow filter to a PieChart control, Flex renders that drop shadow filter in addition to the default drop shadow filter on the PieSeries.Add a drop shadow filter to a PieChart control, Flex renders that drop shadow filter in addition to the default drop shadow filter on the PieSeries.
12.Create a PieChart control and applies a drop shadow to itCreate a PieChart control and applies a drop shadow to it
13.Set nameField property of a PieChart control's data series to ExpenseSet nameField property of a PieChart control's data series to Expense
14.PieChart with ActionScriptPieChart with ActionScript
15.Handle PieChart item click eventHandle PieChart item click event
16.Set selection model for PieChart to single selectableSet selection model for PieChart to single selectable
17.Describe the properties of the PieChart's PieSeriesDescribe the properties of the PieChart's PieSeries
18.defines an Array of custom SolidColor objects, and applies it to the PieSeries object in the PieChart control.defines an Array of custom SolidColor objects, and applies it to the PieSeries object in the PieChart control.
19.Doughnut PieChart(PieChart with a hole)Doughnut PieChart(PieChart with a hole)
20.Exploding PieChartExploding PieChart
21.creates a PieChart that uses a spectrum of reds for the wedges:creates a PieChart that uses a spectrum of reds for the wedges:
22.Pie custom LabelPie custom Label
23.Pie ExplodePie Explode
24.Pie Multiple SeriesPie Multiple Series
25.Pie Set Fill ColorsPie Set Fill Colors
26.The fourth data point, the Car expense, is explodedThe fourth data point, the Car expense, is exploded
27.Get selected index from ChartItemEventGet selected index from ChartItemEvent
28.Change chart data provider and update data series after clickingChange chart data provider and update data series after clicking
29.Pie Label position calloutPie Label position callout
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.