| Package | xp.charting |
| Class | public class PieSeries |
| Inheritance | PieSeries Series ChartStyleClient ChartDisplayElement ProgrammaticSkin mx.core.FlexSprite |
| Implements | ISeries |
| Subclasses | DoughnutSeries |
Default MXML PropertydataProvider
See also
| Property | Defined by | ||
|---|---|---|---|
| alphaNormal : Number = .40
The alpha value for non-selected slices
| PieSeries | ||
| alphaSelected : Number = .50
The alpha value for selected slices
| PieSeries | ||
![]() | annotations : 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 | ||
![]() | chart : IChartArea | ChartDisplayElement | |
![]() | chartDesc : ChartDesc | ChartDisplayElement | |
![]() | chartParent : IChart | ChartDisplayElement | |
![]() | className : String | ChartStyleClient | |
| cutoffLevel : Number = 0
Specify the minimum percentage needed to be displayed in a pie chart.
| PieSeries | ||
![]() | dataEffectIn : ChartEffect | Series | |
![]() | dataEffectOut : ChartEffect | Series | |
![]() | dataProvider : Object
The source of the chart items.
| Series | |
![]() | dataTipFormat : 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 | |
![]() | dataTipFunction : Function | Series | |
![]() | displayName : 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 | ||
![]() | graphMode : String = "2D"
The default chart type one of pie2D, pie25D, pie3D, doughnut
| Series | |
![]() | height : Number | ProgrammaticSkin | |
![]() | inheritingStyles : Object | ChartStyleClient | |
![]() | initialized : 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 | ||
![]() | isFilledArea : Boolean = false
is the area filled this series
| Series | |
![]() | isRotated : Boolean
Indicates whether this series is rendered horizontally (rotated)
| Series | |
![]() | isSubChart : Boolean | ChartDisplayElement | |
![]() | items : Array
The array of DataItems represented by this series
| Series | |
| labelField : String
The field in the dataProvider that contains the segment labels
| PieSeries | ||
![]() | labelFormat : 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 | |
![]() | labelFunction : Function | Series | |
![]() | labelOffset : Number = 0
controls the distance between a label and the pie
| Series | |
![]() | labelPosition : String
Specifies how to render value labels.
| Series | |
![]() | legendFormat : 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 | |
![]() | legendFunction : Function | Series | |
![]() | length : int
The number of DataItems in this series
| Series | |
![]() | measuredHeight : Number
The measured height of this object.
| ChartDisplayElement | |
![]() | measuredWidth : Number
The measured width of this object.
| ChartDisplayElement | |
![]() | nestLevel : int | ProgrammaticSkin | |
![]() | nonInheritingStyles : Object | ChartStyleClient | |
| othersLabel : String = "Others"
The label for the collector slice in a PieSeries
| PieSeries | ||
![]() | parent : 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 | ||
![]() | processedDescriptors : Boolean | ProgrammaticSkin | |
![]() | selectedItem : DataPoint | Series | |
![]() | selectedText : String | Series | |
| startAngle : Number
Allows you to set a 3D rotation angle around the Y-axis.
| PieSeries | ||
![]() | styleDeclaration : CSSStyleDeclaration | ChartStyleClient | |
![]() | styleName : Object | ChartStyleClient | |
![]() | trackMouse : Boolean = false | Series | |
![]() | updateCompletePendingFlag : Boolean | ProgrammaticSkin | |
![]() | useGradient : 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 | ||
![]() | volume : 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 | |
![]() | width : Number | ProgrammaticSkin | |
| Method | Defined by | ||
|---|---|---|---|
|
Constructor
| PieSeries | ||
![]() |
clearStyle(styleProp:String):void
| ChartStyleClient | |
![]() |
determineTextFormatFromStyles():UITextFormat
| ChartStyleClient | |
|
explodeItem(item:PolarDataItem, explode:Number, alpha:Number = 1, draw:Boolean = true):void
| PieSeries | ||
![]() |
getClassStyleDeclarations():Array
| ChartStyleClient | |
![]() |
getDataPoint(x:int, y:int, sensitivity:int, checkXY:Boolean = true):DataPoint
| Series | |
![]() |
getField(fieldName:String):DataFieldDesc
| Series | |
![]() |
getStyle(styleProp:String):*
| ChartStyleClient | |
![]() |
hasField(fieldName:String):Boolean
| Series | |
![]() |
initElement(chart:IChartArea):void
| ChartDisplayElement | |
![]() |
invalidateDisplayList():void
| ProgrammaticSkin | |
![]() |
invalidateProperties():void
| ProgrammaticSkin | |
![]() |
invalidateSize():void
| ProgrammaticSkin | |
![]() |
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
| ProgrammaticSkin | |
![]() |
notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void
| ChartStyleClient | |
![]() |
parentChanged(p:DisplayObjectContainer):void
| ChartStyleClient | |
![]() |
regenerateStyleCache(recursive:Boolean):void
| ChartStyleClient | |
![]() |
registerEffects(effects:Array):void
| ChartStyleClient | |
|
rotateItem(item:PolarDataItem, rotation:Number, alpha:Number, draw:Boolean = true):void
| PieSeries | ||
![]() |
setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
| ProgrammaticSkin | |
![]() |
setChartDimensions():void
Set the physical pixel size of the chart
| Series | |
![]() |
setStyle(styleProp:String, newValue:*):void
| ChartStyleClient | |
|
showItem(item:PolarDataItem, state:Boolean):void
| PieSeries | ||
![]() |
styleChanged(styleProp:String):void
Whenever any style changes, redraw this skin.
| Series | |
![]() |
validateDisplayList():void
| ChartDisplayElement | |
![]() |
validateNow():void
Validate and update the properties and layout of this object
and redraw it, if necessary.
| ProgrammaticSkin | |
![]() |
validateProperties():void
| ProgrammaticSkin | |
![]() |
validateSize(recursive:Boolean = false):void
| ChartDisplayElement | |
| Style | Description | Defined by | ||
|---|---|---|---|---|
|
calloutStroke
| Type: mx.graphics.IStroke CSS Inheritance: no Specifies the line style used to draw the lines to callouts. | PieSeries | ||
![]() | 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 | ||
![]() | Type: mx.graphics.IFill CSS Inheritance: no Sets the fill for this data series. | Series | ||
![]() | Type: xp.charting.IMarkerRenderer CSS Inheritance: yes | Series | ||
![]() | Type: int CSS Inheritance: yes | Series | ||
![]() | Type: mx.graphics.IStroke CSS Inheritance: yes | Series | ||
![]() | Type: String CSS Inheritance: yes | Series | ||
![]() | Type: xp.charting.IMarkerRenderer CSS Inheritance: yes | Series | ||
![]() | Type: int CSS Inheritance: yes | Series | ||
![]() | Type: mx.graphics.IStroke CSS Inheritance: yes | Series | ||
![]() | Type: String CSS Inheritance: yes | Series | ||
![]() | Type: Number CSS Inheritance: no Sets the stroke width for this data series. | Series | ||
![]() | Type: Number CSS Inheritance: no The drop shadow alpha | Series | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of the drop shadow. | Series | ||
![]() | Type: String CSS Inheritance: no Direction of the drop shadow. | Series | ||
![]() | Type: Number Format: Length CSS Inheritance: no Distance of the drop shadow. | Series | ||
![]() | 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 | ||
![]() | Type: Boolean CSS Inheritance: yes | Series | ||
![]() | Type: Boolean CSS Inheritance: yes controls whether marker are always shown(if false they are only shown with tooltip) | Series | ||
![]() | Type: mx.graphics.IStroke CSS Inheritance: no Sets the stroke style for this data series. | Series | ||
| actualPieRadius | property |
protected var actualPieRadius:Number = 100
| alphaNormal | property |
public var alphaNormal:Number = .40The alpha value for non-selected slices
| alphaSelected | property |
public var alphaSelected:Number = .50The alpha value for selected slices
| _aspectAngleX | property |
protected var _aspectAngleX:Number = -45
| aspectAngleX | property |
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
| _aspectAngleY | property |
protected var _aspectAngleY:Number = 45
| aspectAngleY | property |
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
| cutoffLevel | property |
public var cutoffLevel:Number = 0Specify the minimum percentage needed to be displayed in a pie chart. Anything less than this will be collected into a single "others" catgeory slice
| dropHeight | property |
public var dropHeight:Number = 20The depth of a 3D slice
| _edgeStroke | property |
protected var _edgeStroke:IStroke
| explodeDistanceNormal | property |
public var explodeDistanceNormal:Number = 7The distance the non selected pie slice is away from the centre of the pie
| explodeDistanceSelected | property |
public var explodeDistanceSelected:Number = 15The distance the selected pie slice is away from the centre of the pie
| initialSelectedItemIndex | property |
public var initialSelectedItemIndex:Number = 0index of the initial slice to be selected
| insideLabelPosition | property |
public var insideLabelPosition:Number = .6The 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.
| invalidSliceCount | property |
protected var invalidSliceCount:Boolean = true
| labelField | property |
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
| othersLabel | property |
public var othersLabel:String = "Others"The label for the collector slice in a PieSeries
| percentDecimals | property |
public var percentDecimals:Number = 2Number of decimal places for percentage display
| pieRadius | property |
public var pieRadius:Number = 1The pieRadius as a percentage of the available width/height. A number between 0 and 1.
| _startAngle | property |
protected var _startAngle:Number = 0
| startAngle | property |
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
| valueField | property |
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
| valueFormat | property |
public var valueFormat:String = "#,###"ormat pattern to apply to the data point value
| PieSeries | () | constructor |
public function PieSeries()Constructor
| 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) |
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 |
| 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 |
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 |
| setSelectedItem | () | method |
| 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