(Adobe® Flex™ Charting components only)
Packagemx.charts
Classpublic class ChartItem
InheritanceChartItem Inheritance EventDispatcher Inheritance Object
SubclassesAreaSeriesItem, BarSeriesItem, BubbleSeriesItem, ColumnSeriesItem, HLOCSeriesItem, LineSeriesItem, PieSeriesItem, PlotSeriesItem

A ChartItem represents a single item in a ChartSeries. In most standard series, there is one ChartItem created for each item in the series' dataProvider collection. ChartItems are passed to the instances of a series' itemRenderer for rendering. Most Series types extend ChartItem to contain additional information specific to the chart type.

See also

Skinning ChartItem objects


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  element : IChartElement
The series or element that owns the ChartItem.
ChartItem
  index : int
The index of the data from the series' dataProvider that the ChartItem represents.
ChartItem
  item : Object
The item from the series' dataProvider that the ChartItem represents.
ChartItem
  itemRenderer : IFlexDisplayObject
The instance of the chart's itemRenderer that represents this ChartItem.
ChartItem
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
  
ChartItem(element:IChartElement = null, item:Object = null, index:uint = 0)
Constructor.
ChartItem
 Inherited
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
  
Returns a copy of this ChartItem.
ChartItem
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Property detail
elementproperty
public var element:IChartElement

The series or element that owns the ChartItem.

indexproperty 
public var index:int

The index of the data from the series' dataProvider that the ChartItem represents.

itemproperty 
public var item:Object

The item from the series' dataProvider that the ChartItem represents.

itemRendererproperty 
public var itemRenderer:IFlexDisplayObject

The instance of the chart's itemRenderer that represents this ChartItem.

Constructor detail
ChartItem()constructor
public function ChartItem(element:IChartElement = null, item:Object = null, index:uint = 0)

Constructor.

Parameters
element:IChartElement (default = null) — The series or element that owns the ChartItem.
 
item:Object (default = null) — The item from the series' dataProvider that the ChartItem represents.
 
index:uint (default = 0) — The index of the data from the series' dataProvider that the ChartItem represents.
Method detail
clone()method
public function clone():ChartItem

Returns a copy of this ChartItem.

Returns
ChartItem