メソッド | プロパティ | エフェクト | イベント | スタイル | Frames | No Frames

mx.charts
PieChart クラス

継承を示す線継承を示す線継承を示す線継承を示す線


PieChart クラス
mx.charts.chartClasses.PolarChart の拡張

PieChart コントロールは、標準的な円グラフでデータ系列を表します。円グラフ内の各区分の大きさは、データプロバイダ用のデータにより、他の区分との関連で決定されます。

PieChart コントロールでは、series プロパティに PieSeries オブジェクトの配列が含まれている必要があります。PieSeries クラスを使用すると、標準的な円グラフ、ドーナツグラフ、および積み上げ円グラフを作成できます。

MXML シンタックス

<mx:PieChart> タグは、親クラスのすべてのプロパティと、次のプロパティを継承します。

 <mx:PieChart
innerRadius="0"
/>

を参照するにはここをクリックしてください

関連項目
    series.PieSeries



メソッド

mx.charts.chartClasses.ChartBase クラスから継承されるメソッド
dataTipFunction   findDataPoint  

mx.core.UIComponent クラスから継承されるメソッド
drawFocus   getFocus   getFocusManager   setEnabled   setFocus  

mx.core.UIObject クラスから継承されるメソッド
addEventListener   applyProperties   buildDepthTable   commitProperties   constructObject2   createAccessibilityImplementation   createChildAtDepth   createChildren   createClassChildAtDepth   createClassObject   createEmptyObject   destroyObject   dispatchEvent   doLater   draw   drawRect   executeBindings   fillRect   findNextAvailableDepth   getRepeaterItem   getStyle   handleEvent   init   invalidate   invalidateLayout   invalidateProperties   invalidateSize   invalidateStyle   layoutChildren   measure   move   redraw   removeEventListener   setDepthAbove   setDepthBelow   setMask   setSize   setSizeNoLayout   setStyle   swapDepths  



プロパティ

mx.charts.chartClasses.ChartBase クラスから継承されるプロパティ
annotationElements   backgroundElements   clipContent   dataProvider   mouseSensitivity   series   showDataTips  

mx.core.UIComponent クラスから継承されるプロパティ
enabled   errorString   tabEnabled   tabIndex   version  

mx.core.UIObject クラスから継承されるプロパティ
alpha   baselinePosition   className   depth   documentDescriptor   height   heightFlex   id   instanceIndices   isDocument   kStretch   layoutHeight   layoutWidth   maxHeight   maxWidth   minHeight   minWidth   mouseX   mouseY   nestLevel   oldHeight   oldWidth   oldX   oldY   parent   parentApplication   parentDocument   percentHeight   percentWidth   preferredHeight   preferredWidth   repeaterIndices   scaleX   scaleY   styleName   tabEnabled   toolTip   version   visible   width   widthFlex   x   y  



エフェクト

mx.core.UIComponent クラスから継承されるエフェクト
focusInEffect   focusOutEffect  

mx.core.UIObject クラスから継承されるエフェクト
creationCompleteEffect   hideEffect   mouseDownEffect   mouseOutEffect   mouseOverEffect   mouseUpEffect   moveEffect   resizeEffect   showEffect  



イベント

mx.charts.chartClasses.ChartBase クラスから継承されるイベント
mouseClickData  mouseDown  mouseMove  mouseMoveData  mouseOut  mouseOutData  mouseOver  mouseOverData  mouseUp 

mx.core.UIComponent クラスから継承されるイベント
focusIn  focusOut  invalid  keyDown  keyUp  valid  valueCommitted 

mx.core.UIObject クラスから継承されるイベント
creationComplete  dragComplete  dragDrop  dragEnter  dragExit  dragOver  draw  effectEnd  effectStart  hide  hideToolTip  initialize  load  mouseChangeSomewhere  mouseDown  mouseDownSomewhere  mouseMove  mouseMoveSomewhere  mouseOut  mouseOver  mouseUp  mouseUpSomewhere  move  resize  show  showToolTip  unload 



スタイル
innerRadius型 : Number   
円グラフの中心の空洞のサイズを決定します。このプロパティは、円グラフ全体の半径に対する中心の円の半径のパーセンテージ値を表します。デフォルト値は 0% です。このプロパティを使用すると、ドーナツグラフを作成できます。

mx.charts.chartClasses.ChartBase クラスから継承されるスタイル
chartSeriesStyles   fill   marginBottom   marginTop  

mx.core.UIComponent クラスから継承されるスタイル
backgroundAlpha   backgroundColor   backgroundDisabledColor   backgroundImage   backgroundSize   barColor   borderCapColor   borderColor   borderSides   borderStyle   borderThickness   cornerRadius   disabledColor   dropShadow   errorColor   fillColors   highlightColor   modalTransparency   scrollTrackColor   selectedFillColors   shadowCapColor   shadowColor   shadowDirection   shadowDistance   symbolBackgroundColor   symbolBackgroundDisabledColor   symbolBackgroundPressedColor   symbolColor   symbolDisabledColor   themeColor  

mx.core.UIObject クラスから継承されるスタイル
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  


PieChartExample.mxml
<?xml version="1.0"?>
<!-- 円グラフの使用方法を示す簡単な例 -->
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">

<mx:Script>
<![CDATA[
          
var Medals = [{Country:"USA", Gold:35, Silver:39, Bronze: 29},
		        {Country:"China", Gold:32, Silver:17, Bronze: 14},
		        {Country:"Russia", Gold:27, Silver:27, Bronze: 38}
	               ]
	
	function displayGold(data, field, index, percentValue)
        {
	  var temp= (" " + percentValue).substr(0,6);
return data.Country + ":" + newline + "Total Gold:" + data.Gold + newline + temp + "%";
        }

    ]]>
</mx:Script>

<mx:Panel title="Olympics 2004 Medals Tally Panel" height="100%" width="50%">

<mx:HBox id="box" height="100%" width="100%">

<mx:PieChart id="chart" marginLeft="5" dataProvider="{Medals}" height="100%" width="100%"
marginRight="5" showDataTips="true">
<mx:series>
<mx:Array>

<mx:PieSeries labelPosition="callout" field="Gold" labelFunction="displayGold">
<mx:calloutStroke>
<mx:Stroke weight="0" color="0x888888" alpha="100"/>
</mx:calloutStroke>
<mx:radialStroke>
<mx:Stroke weight="0" color="#FFFFFF" alpha="20"/>
</mx:radialStroke>
<mx:stroke>
<mx:Stroke color="0" alpha="20" weight="2"/>
</mx:stroke>
</mx:PieSeries>

</mx:Array>

</mx:series>

</mx:PieChart>

</mx:HBox>

</mx:Panel>

</mx:Application>