mx.charts.series.items

# PieSeriesItem - AS3 Flex

Package | mx.charts.series.items
Class | public class PieSeriesItem
Inheritance | PieSeriesItem ChartItem EventDispatcher Object

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Represents the information required to render a single wedge as part of a PieSeries. The PieSeries class passes these items to its itemRenderer when rendering.

More examples

Using the selection API to create new charts
Dragging and dropping ChartItem objects

Learn more

Working with ChartItem objects to access chart data

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | angle : Number The angle, in radians, that this wedge subtends. | PieSeriesItem
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | currentState : String Defines the appearance of the ChartItem. | ChartItem
|  | element : IChartElement The series or element that owns the ChartItem. | ChartItem
|  | fill : IFill The fill value associated with this wedge of the PieChart control. | PieSeriesItem
|  | index : int The index of the data from the series' data provider that the ChartItem represents. | ChartItem
|  | innerRadius : Number The distance of the inner edge of this wedge from its origin, measured in pixels. | PieSeriesItem
|  | item : Object The item from the series' data provider that the ChartItem represents. | ChartItem
|  | itemRenderer : IFlexDisplayObject The instance of the chart's itemRenderer that represents this ChartItem. | ChartItem
|  | labelAngle : Number The angle of the label, in radians, for this wedge. | PieSeriesItem
|  | number : Number The value this wedge represents converted into screen coordinates. | PieSeriesItem
|  | origin : Point The origin, relative to the PieSeries's coordinate system, of this wedge. | PieSeriesItem
|  | outerRadius : Number The distance of the outer edge of this wedge from its origin, measured in pixels. | PieSeriesItem
|  | percentValue : Number The percentage this value represents of the total pie. | PieSeriesItem
|  | startAngle : Number The start angle, in radians, of this wedge. | PieSeriesItem
|  | value : Object The value this wedge represents from the PieSeries' dataProvider. | PieSeriesItem

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | PieSeriesItem(element:PieSeries = null, data:Object = null, index:uint = 0) Constructor. | PieSeriesItem
|  | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. | EventDispatcher
|  | clone():ChartItem Returns a copy of this ChartItem. | ChartItem
|  | dispatchEvent(event:Event):Boolean Dispatches an event into the event flow. | EventDispatcher
|  | hasEventListener(type:String):Boolean Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | EventDispatcher
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void Removes a listener from the EventDispatcher object. | EventDispatcher
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object
|  | willTrigger(type:String):Boolean Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | EventDispatcher

Events
Click for more information on events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined By
--- | --- | --- | ---
|  | activate | [broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher
|  | deactivate | [broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive. | EventDispatcher

Public Constants
Hide Inherited Public Constants
Show Inherited Public Constants

| Constant | Defined By
--- | --- | ---

Property Detail

### angle

property

`public var angle:Number`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The angle, in radians, that this wedge subtends.

### fill

property

`public var fill:IFill`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The fill value associated with this wedge of the PieChart control.

### innerRadius

property

`public var innerRadius:Number`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The distance of the inner edge of this wedge from its origin, measured in pixels. If 0, the wedge should come to a point at the origin.

### labelAngle

property

`public var labelAngle:Number`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The angle of the label, in radians, for this wedge.

### number

property

`public var number:Number`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The value this wedge represents converted into screen coordinates.

### origin

property

`public var origin:Point`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The origin, relative to the PieSeries's coordinate system, of this wedge.

### outerRadius

property

`public var outerRadius:Number`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The distance of the outer edge of this wedge from its origin, measured in pixels.

### percentValue

property

`public var percentValue:Number`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The percentage this value represents of the total pie.

### startAngle

property

`public var startAngle:Number`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The start angle, in radians, of this wedge.

### value

property

`public var value:Object`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The value this wedge represents from the PieSeries' dataProvider.

Constructor Detail

### PieSeriesItem

()
Constructor

`public function PieSeriesItem(element:PieSeries = null, data:Object = null, index:uint = 0)`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Constructor.

Parameters

| `element:PieSeries` (default = `null`)`` — The owning series.
| `data:Object` (default = `null`)`` — The item from the dataProvider that this ChartItem represents .
| `index:uint` (default = `0`)`` — The index of the item from the series's dataProvider.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00