Packagexp.charting
Classpublic class PieSeries
InheritancePieSeries Inheritance Series Inheritance ChartStyleClient Inheritance ChartDisplayElement Inheritance ProgrammaticSkin Inheritance mx.core.FlexSprite
ImplementsISeries
SubclassesDoughnutSeries

PieSeries

Default MXML PropertydataProvider

See also

support


Public Properties
 PropertyDefined by
  alphaNormal : Number = .40
The alpha value for non-selected slices
PieSeries
  alphaSelected : Number = .50
The alpha value for selected slices
PieSeries
 Inheritedannotations : Array
The annotations for this series
Series
  aspectAngleX : Number
Allows you to set a 3D rotation angle around the X-axis The value can be set to an integer between [0-90] indicating the degree of rotation around the X-axis.
PieSeries
  aspectAngleY : Number
Allows you to set a 3D rotation angle around the Y-axis.
PieSeries
 Inheritedchart : IChartArea
ChartDisplayElement
 InheritedchartDesc : ChartDesc
ChartDisplayElement
 InheritedchartParent : IChart
ChartDisplayElement
 InheritedclassName : String
ChartStyleClient
  cutoffLevel : Number = 0
Specify the minimum percentage needed to be displayed in a pie chart.
PieSeries
 InheriteddataEffectIn : ChartEffect
Series
 InheriteddataEffectOut : ChartEffect
Series
 InheriteddataProvider : Object
The source of the chart items.
Series
 InheriteddataTipFormat : String
The format for the data tip display For axis series the elements are {0} = series Name {1} = xAxis Name {2} = x value {3} = yAxis Name {4} = y value {5} = Annotation The default value is <b>{0}</b><br/>,<i>{1}:</i>,{2}\n,<i>{3}:</i>,{4},{5} For pie series the elements are {0} = label {1} = value {2} = percent The default value is {0}\r{2}
Series
 InheriteddataTipFunction : Function
Series
 InheriteddisplayName : String = ""
name for this series
Series
  dropHeight : Number = 20
The depth of a 3D slice
PieSeries
  explodeDistanceNormal : Number = 7
The distance the non selected pie slice is away from the centre of the pie
PieSeries
  explodeDistanceSelected : Number = 15
The distance the selected pie slice is away from the centre of the pie
PieSeries
 InheritedgraphMode : String = "2D"
The default chart type one of pie2D, pie25D, pie3D, doughnut
Series
 Inheritedheight : Number
ProgrammaticSkin
 InheritedinheritingStyles : Object
ChartStyleClient
 Inheritedinitialized : Boolean
ProgrammaticSkin
  initialSelectedItemIndex : Number = 0
index of the initial slice to be selected
PieSeries
  insideLabelPosition : Number = .6
The position of the label inside the Pie The position of the label as a percentage of the radius of the ring, a number between 0 and 1.
PieSeries
 InheritedisFilledArea : Boolean = false
is the area filled this series
Series
 InheritedisRotated : Boolean
Indicates whether this series is rendered horizontally (rotated)
Series
 InheritedisSubChart : Boolean
ChartDisplayElement
 Inheriteditems : Array
The array of DataItems represented by this series
Series
  labelField : String
The field in the dataProvider that contains the segment labels
PieSeries
 InheritedlabelFormat : String
The format for the data label display For axis series the elements are {0} = series Name {1} = xAxis Name {2} = x value {3} = yAxis Name {4} = y value {5} = Annotation The default value is <b>{0}</b><br/>,<i>{1}:</i>,{2}\n,<i>{3}:</i>,{4},{5} For pie series the elements are {0} = label {1} = value {2} = percent The default value is {2}
Series
 InheritedlabelFunction : Function
Series
 InheritedlabelOffset : Number = 0
controls the distance between a label and the pie
Series
 InheritedlabelPosition : String
Specifies how to render value labels.
Series
 InheritedlegendFormat : String
The format for the legend display For axis series the elements are {0} = series Name {1} = xAxis Name {2} = x value {3} = yAxis Name {4} = y value {5} = Annotation The default value is <b>{0}</b><br/>,<i>{1}:</i>,{2}\n,<i>{3}:</i>,{4},{5} For pie series the elements are {0} = label {1} = value {2} = percent The default value is {0} [{2}]
Series
 InheritedlegendFunction : Function
Series
 Inheritedlength : int
The number of DataItems in this series
Series
 InheritedmeasuredHeight : Number
The measured height of this object.
ChartDisplayElement
 InheritedmeasuredWidth : Number
The measured width of this object.
ChartDisplayElement
 InheritednestLevel : int
ProgrammaticSkin
 InheritednonInheritingStyles : Object
ChartStyleClient
  othersLabel : String = "Others"
The label for the collector slice in a PieSeries
PieSeries
 Inheritedparent : DisplayObjectContainer
ChartDisplayElement
  percentDecimals : Number = 2
Number of decimal places for percentage display
PieSeries
  pieRadius : Number = 1
The pieRadius as a percentage of the available width/height.
PieSeries
 InheritedprocessedDescriptors : Boolean
ProgrammaticSkin
 InheritedselectedItem : DataPoint
Series
 InheritedselectedText : String
Series
  startAngle : Number
Allows you to set a 3D rotation angle around the Y-axis.
PieSeries
 InheritedstyleDeclaration : CSSStyleDeclaration
ChartStyleClient
 InheritedstyleName : Object
ChartStyleClient
 InheritedtrackMouse : Boolean = false
Series
 InheritedupdateCompletePendingFlag : Boolean
ProgrammaticSkin
 InheriteduseGradient : Boolean = false
use a gradient fill for series
Series
  valueField : String
The field in the dataProvider that contains the segment values
PieSeries
  valueFormat : String = "#,###"
ormat pattern to apply to the data point value
PieSeries
 Inheritedvolume : Number
Allows you to specify a volume for data series markers By adjusting the volume, you can modify the amount of space between data points in the series.
Series
 Inheritedwidth : Number
ProgrammaticSkin
Protected Properties
 PropertyDefined by
  actualPieRadius : Number = 100
PieSeries
  _aspectAngleX : Number = -45
PieSeries
  _aspectAngleY : Number = 45
PieSeries
 Inherited_chartDataProvider : ICollectionView
Series
 Inherited_chartLabels : LabelCache
Series
 InheritedchartLabels : LabelCache
Series
 InheritedchartStyleChanged : Boolean = true
Series
 InheritedchartStyles : Object
Series
 InheritedchildList : Array
ChartStyleClient
 Inherited_dataEffectIn : ChartEffect
Series
 Inherited_dataEffectOut : ChartEffect
Series
 InheriteddataItemClass : Class
Series
 Inherited_dataProvider : ICollectionView
Series
 InheriteddataProviderChanged : Boolean = false
Series
 Inherited_dataTipFormat : String
Series
 Inherited_deferLayout : Boolean = false
ProgrammaticSkin
 InheriteddropShadowStyleChanged : Boolean = true
Series
 InheriteddropShadowTarget : DisplayObject
Series
  _edgeStroke : IStroke
PieSeries
 InheritedfieldMap : Object
Series
 Inheritedfields : Array
Series
 InheritedinvalidateDisplayListFlag : Boolean = false
ProgrammaticSkin
 InheritedinvalidatePropertiesFlag : Boolean = false
ProgrammaticSkin
 InheritedinvalidateSizeFlag : Boolean = false
ProgrammaticSkin
 InheritedinvalidDataScale : Boolean = false
Series
 InheritedinvalidFields : Boolean = true
Series
 InheritedinvalidSeriesData : Boolean = false
Series
  invalidSliceCount : Boolean = true
PieSeries
 Inherited_isRotated : Boolean = false
Series
 Inherited_items : Array
Series
 Inherited_labelFormat : String
Series
 Inherited_labelPosition : String = "none"
Series
 InheritedlastMouseX : int
Series
 InheritedlastMouseY : int
Series
 Inherited_legendData : Array
Series
 Inherited_legendFormat : String
Series
 Inherited_marker : Marker
Series
 Inherited_markerRenderer : IMarkerRenderer
Series
 Inherited_markers : Array
Series
 Inherited_markerSize : int
Series
 Inherited_markerStroke : IStroke
Series
 Inherited_markerType : String
Series
 Inheritedowner : Object
ChartStyleClient
 Inherited_palette : Palette
Series
 InheritedpaletteBaseIndex : int = 0
Series
 InheritedpaletteItemCount : int = 1
Series
 Inherited_parent : DisplayObjectContainer
ChartDisplayElement
 Inherited_selectedItem : DataPoint
Series
 Inherited_seriesDataProvider : ICollectionView
Series
 Inherited_showAnnotations : Boolean
Series
 Inherited_showCursor : Boolean
Series
 Inherited_showDataTips : Boolean
Series
 Inherited_showLabels : Boolean
Series
 Inherited_showMarkers : Boolean
Series
 InheritedsizeChanged : Boolean = false
ProgrammaticSkin
  _startAngle : Number = 0
PieSeries
 InheritedstyleParent : IStyleClient
ChartStyleClient
 InheritedstylesInitialized : Boolean = false
ChartStyleClient
 InheritedtextFieldList : Array
ChartStyleClient
 Inherited_trackMouse : Boolean = false
Series
 Inherited_volume : Number = .8
Series
 InheritedxOffset : int
Series
Public Methods
 MethodDefined by
  
Constructor
PieSeries
 Inherited
clearStyle(styleProp:String):void
ChartStyleClient
 Inherited
ChartStyleClient
  
explodeItem(item:PolarDataItem, explode:Number, alpha:Number = 1, draw:Boolean = true):void
PieSeries
 Inherited
ChartStyleClient
 Inherited
getDataPoint(x:int, y:int, sensitivity:int, checkXY:Boolean = true):DataPoint
Series
 Inherited
getField(fieldName:String):DataFieldDesc
Series
 Inherited
getStyle(styleProp:String):*
ChartStyleClient
 Inherited
hasField(fieldName:String):Boolean
Series
 Inherited
initElement(chart:IChartArea):void
ChartDisplayElement
 Inherited
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
ProgrammaticSkin
 Inherited
notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void
ChartStyleClient
 Inherited
parentChanged(p:DisplayObjectContainer):void
ChartStyleClient
 Inherited
regenerateStyleCache(recursive:Boolean):void
ChartStyleClient
 Inherited
registerEffects(effects:Array):void
ChartStyleClient
  
rotateItem(item:PolarDataItem, rotation:Number, alpha:Number, draw:Boolean = true):void
PieSeries
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
ProgrammaticSkin
 Inherited
Set the physical pixel size of the chart
Series
 Inherited
setStyle(styleProp:String, newValue:*):void
ChartStyleClient
  
showItem(item:PolarDataItem, state:Boolean):void
PieSeries
 Inherited
styleChanged(styleProp:String):void
Whenever any style changes, redraw this skin.
Series
 Inherited
ChartDisplayElement
 Inherited
validateNow():void
Validate and update the properties and layout of this object and redraw it, if necessary.
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
validateSize(recursive:Boolean = false):void
ChartDisplayElement
Protected Methods
 MethodDefined by
 Inherited
activate():void
ChartDisplayElement
 Inherited
addedHandler(e:Event):void
ChartDisplayElement
 Inherited
chartStateChangedHandler(e:StateChangeEvent):void
Series
  
checkDataPoint(x:int, y:int, sensitivity:int, checkXY:Boolean = true):DataPoint
PieSeries
 Inherited
Series
 Inherited
ChartDisplayElement
  
PieSeries
 Inherited
deactivate():void
ChartDisplayElement
 Inherited
deferLayout(state:Boolean):void
ProgrammaticSkin
  
drawLabel(item:*, index:int, x:int, y:int, position:String = null):void
PieSeries
  
drawLabels():void
PieSeries
  
drawSeries():void
PieSeries
  
drawWedge(item:PolarDataItem):Object
PieSeries
 Inherited
getFill(index:int = -1):IFill
Series
  
getFormattedText(item:DataItem, type:String):String
PieSeries
  
getLegendData():Array
PieSeries
 Inherited
getMarker(index:int = -1):Marker
Series
 Inherited
Series
 Inherited
getParent():DisplayObjectContainer
ChartDisplayElement
 Inherited
Series
 Inherited
Series
 Inherited
Series
  
PieSeries
 Inherited
getStroke(index:int = -1):IStroke
Series
 Inherited
Series
 Inherited
ChartDisplayElement
  
initialize():void
PieSeries
 Inherited
ChartStyleClient
 Inherited
Series
 Inherited
ChartStyleClient
 Inherited
Series
 Inherited
Series
 Inherited
Series
 Inherited
Series
  
PieSeries
 Inherited
measure():void
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
notifyTextFieldStyleChange(styleProp:String):void
ChartStyleClient
  
plotSizeChangedHandler(e:Event):void
PieSeries
 Inherited
removedHandler(e:Event):void
ChartDisplayElement
 Inherited
setChartDataProvider(value:Object):void
Series
 Inherited
setData(cursor:IViewCursor):void
Series
  
PieSeries
 Inherited
setDataProvider(value:ICollectionView):void
Series
  
PieSeries
 Inherited
setShowCursor(value:Boolean):void
Series
 Inherited
setShowDataTips(value:Boolean):void
Series
 Inherited
setShowLabels(value:Boolean):void
Series
 Inherited
setTrackMouse(value:Boolean):void
Series
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
PieSeries
 Inherited
updateFields():void
Series
 Inherited
Initializes the SeriesData object for the new dataProvider
Series
  
PieSeries
 Inherited
validateData():void
Series
Styles
 StyleDescriptionDefined by
  
calloutStroke
Type: mx.graphics.IStroke   CSS Inheritance: no
Specifies the line style used to draw the lines to callouts.
PieSeries
 Inherited Type: Boolean   CSS Inheritance: no
Boolean property that specifies whether the component has a visible drop shadow.
Series
  
edgeStroke
Type: mx.graphics.IStroke   CSS Inheritance: no
Specifies the line style used to draw the border between the wedges of the pie.
PieSeries
 Inherited Type: mx.graphics.IFill   CSS Inheritance: no
Sets the fill for this data series.
Series
 Inherited Type: xp.charting.IMarkerRenderer   CSS Inheritance: yes
Series
 Inherited Type: int   CSS Inheritance: yes
Series
 Inherited Type: mx.graphics.IStroke   CSS Inheritance: yes
Series
 Inherited Type: String   CSS Inheritance: yes
Series
 Inherited Type: xp.charting.IMarkerRenderer   CSS Inheritance: yes
Series
 Inherited Type: int   CSS Inheritance: yes
Series
 Inherited Type: mx.graphics.IStroke   CSS Inheritance: yes
Series
 Inherited Type: String   CSS Inheritance: yes
Series
 Inherited Type: Number   CSS Inheritance: no
Sets the stroke width for this data series.
Series
 Inherited Type: Number   CSS Inheritance: no
The drop shadow alpha
Series
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of the drop shadow.
Series
 Inherited Type: String   CSS Inheritance: no
Direction of the drop shadow.
Series
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Distance of the drop shadow.
Series
 Inherited Type: Boolean   CSS Inheritance: no
Controls whether a cursor is attached to this series Only one series per chart (or subchart) can have a cursor attached
Series
 Inherited Type: Boolean   CSS Inheritance: yes
Series
 Inherited Type: Boolean   CSS Inheritance: yes
controls whether marker are always shown(if false they are only shown with tooltip)
Series
 Inherited Type: mx.graphics.IStroke   CSS Inheritance: no
Sets the stroke style for this data series.
Series
Protected Constants
 ConstantDefined by
 InheritedNESTLEVEL_AXIS : int = 10000
[static]
ChartDisplayElement
 InheritedNESTLEVEL_AXISSET : int = 10001
[static]
ChartDisplayElement
 InheritedNESTLEVEL_LABELS : int = 10002
[static]
ChartDisplayElement
 InheritedNESTLEVEL_SERIES : int = 1000
[static]
ChartDisplayElement
 InheritedNESTLEVEL_SERIESSET : int = 1001
[static]
ChartDisplayElement
 InheritednullStroke : IStroke
[static]
Series
 Inheritedrc : Rectangle
[static]
Series
Property detail
actualPieRadiusproperty
protected var actualPieRadius:Number = 100
alphaNormalproperty 
public var alphaNormal:Number = .40

The alpha value for non-selected slices

alphaSelectedproperty 
public var alphaSelected:Number = .50

The alpha value for selected slices

_aspectAngleXproperty 
protected var _aspectAngleX:Number = -45
aspectAngleXproperty 
aspectAngleX:Number  [read-write]

Allows you to set a 3D rotation angle around the X-axis The value can be set to an integer between [0-90] indicating the degree of rotation around the X-axis. Currently this must be 0

Implementation
    public function get aspectAngleX():Number
    public function set aspectAngleX(value:Number):void
_aspectAngleYproperty 
protected var _aspectAngleY:Number = 45
aspectAngleYproperty 
aspectAngleY:Number  [read-write]

Allows you to set a 3D rotation angle around the Y-axis. The value can be set to an integer between [0-90] indicating the degree of rotation around the Y-axis.

Implementation
    public function get aspectAngleY():Number
    public function set aspectAngleY(value:Number):void
cutoffLevelproperty 
public var cutoffLevel:Number = 0

Specify the minimum percentage needed to be displayed in a pie chart. Anything less than this will be collected into a single "others" catgeory slice

dropHeightproperty 
public var dropHeight:Number = 20

The depth of a 3D slice

_edgeStrokeproperty 
protected var _edgeStroke:IStroke
explodeDistanceNormalproperty 
public var explodeDistanceNormal:Number = 7

The distance the non selected pie slice is away from the centre of the pie

explodeDistanceSelectedproperty 
public var explodeDistanceSelected:Number = 15

The distance the selected pie slice is away from the centre of the pie

initialSelectedItemIndexproperty 
public var initialSelectedItemIndex:Number = 0

index of the initial slice to be selected

insideLabelPositionproperty 
public var insideLabelPosition:Number = .6

The position of the label inside the Pie The position of the label as a percentage of the radius of the ring, a number between 0 and 1.

invalidSliceCountproperty 
protected var invalidSliceCount:Boolean = true
labelFieldproperty 
labelField:String  [read-write]

The field in the dataProvider that contains the segment labels

Implementation
    public function get labelField():String
    public function set labelField(value:String):void
othersLabelproperty 
public var othersLabel:String = "Others"

The label for the collector slice in a PieSeries

percentDecimalsproperty 
public var percentDecimals:Number = 2

Number of decimal places for percentage display

pieRadiusproperty 
public var pieRadius:Number = 1

The pieRadius as a percentage of the available width/height. A number between 0 and 1.

_startAngleproperty 
protected var _startAngle:Number = 0
startAngleproperty 
startAngle:Number  [read-write]

Allows you to set a 3D rotation angle around the Y-axis. The value can be set to an integer between [0-90] indicating the degree of rotation around the Y-axis.

Implementation
    public function get startAngle():Number
    public function set startAngle(value:Number):void
valueFieldproperty 
valueField:String  [read-write]

The field in the dataProvider that contains the segment values

Implementation
    public function get valueField():String
    public function set valueField(value:String):void
valueFormatproperty 
public var valueFormat:String = "#,###"

ormat pattern to apply to the data point value

Constructor detail
PieSeries()constructor
public function PieSeries()

Constructor

Method detail
checkDataPoint()method
protected override function checkDataPoint(x:int, y:int, sensitivity:int, checkXY:Boolean = true):DataPointParameters
x:int
 
y:int
 
sensitivity:int
 
checkXY:Boolean (default = true)

Returns
DataPoint
createLabelInstance()method 
protected override function createLabelInstance():Object

Returns
Object
drawLabel()method 
protected override function drawLabel(item:*, index:int, x:int, y:int, position:String = null):voidParameters
item:*
 
index:int
 
x:int
 
y:int
 
position:String (default = null)
drawLabels()method 
protected function drawLabels():void
drawSeries()method 
protected override function drawSeries():void
drawWedge()method 
protected function drawWedge(item:PolarDataItem):ObjectParameters
item:PolarDataItem

Returns
Object
explodeItem()method 
public function explodeItem(item:PolarDataItem, explode:Number, alpha:Number = 1, draw:Boolean = true):voidParameters
item:PolarDataItem
 
explode:Number
 
alpha:Number (default = 1)
 
draw:Boolean (default = true)
getFormattedText()method 
protected override function getFormattedText(item:DataItem, type:String):StringParameters
item:DataItem
 
type:String

Returns
String
getLegendData()method 
protected override function getLegendData():Array

Returns
Array
getSeriesDataFields()method 
protected override function getSeriesDataFields():Array

Returns
Array
initialize()method 
protected override function initialize():void
invalidateSliceCount()method 
protected function invalidateSliceCount():void
plotSizeChangedHandler()method 
protected override function plotSizeChangedHandler(e:Event):voidParameters
e:Event
rotateItem()method 
public function rotateItem(item:PolarDataItem, rotation:Number, alpha:Number, draw:Boolean = true):voidParameters
item:PolarDataItem
 
rotation:Number
 
alpha:Number
 
draw:Boolean (default = true)
setDataPoint()method 
protected override function setDataPoint(item:DataItem):voidParameters
item:DataItem
setSelectedItem()method 
protected override function setSelectedItem(item:DataPoint):voidParameters
item:DataPoint
showItem()method 
public function showItem(item:PolarDataItem, state:Boolean):voidParameters
item:PolarDataItem
 
state:Boolean
updateDisplayList()method 
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number
 
unscaledHeight:Number
updateSliceCount()method 
protected function updateSliceCount():void