Packagecom.flexicious.lic
Classpublic class ChartBase
InheritanceChartBase Inheritance spark.components.supportClasses.SkinnableComponent
Implements mx.controls.listClasses.IListItemRenderer
Subclasses TinyChartBase

Language Version : ActionScript 3.0

This class is the base class for all chart classes.



Public Properties
 PropertyDefined By
  chartType : String
[read-only] One of the following constants, on basis of which chart type this is.
ChartBase
  data : Object
ChartBase
  dataProvider : Object
Specifies the data provider for the chart.
ChartBase
  dataTipFunction : Function
Specifies a callback method used to generate data tips from values.
ChartBase
  description : String
A short description of the data in the chart.
ChartBase
  mouseSensitivity : Number = 2
Specifies the distance, in pixels, that Flex considers a data point to be under the mouse pointer when the pointer moves around a chart.
ChartBase
  numElements : int
[read-only] The number of elements in the associates skin
ChartBase
  selectionMode : String
Specifies whether or not ChartItem objects can be selected.
ChartBase
  useElements : Boolean
[read-only] Whether to use addElement or addChild;
ChartBase
Public Methods
 MethodDefined By
  
ChartBase
  
addElement(element:IVisualElement):IVisualElement
This method will add the passed in visual element directly into the associates skin
ChartBase
Protected Methods
 MethodDefined By
  
attachSkin():void
[override]
ChartBase
  
collectionChangeHandler(event:CollectionEvent):void
Collection change handler.
ChartBase
  
measure():void
[override]
ChartBase
  
onCreationComplete(event:FlexEvent):void
ChartBase
  
onResize(event:ResizeEvent):void
ChartBase
Events
 Event Summary Defined By
  Dispatched when the ICollectionView has been updated in some way.ChartBase
Property Detail
chartTypeproperty
chartType:String  [read-only]

One of the following constants, on basis of which chart type this is.


Implementation
    public function get chartType():String
dataproperty 
data:Object

This property can be used as the source for data binding.


Implementation
    public function get data():Object
    public function set data(value:Object):void
dataProviderproperty 
dataProvider:Object

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Specifies the data provider for the chart.

This property can accept an array or any other object that implements the IList or ICollectionView interface.

This property can be used as the source for data binding.


Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
dataTipFunctionproperty 
public var dataTipFunction:Function

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Specifies a callback method used to generate data tips from values. This method should use the following signature:

		  function dataTipFunction(hitData:HitData):String
		  

This method returns a string that is displayed for each data point. The text can include HTML formatting. The single parameter is a HitData object that describes the data point.

descriptionproperty 
description:String

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

A short description of the data in the chart. When accessibility is enabled, screen readers use this property to describe the chart.

This string defaults to the empty string, and must be explicitly assigned by the developer to have meaning.


Implementation
    public function get description():String
    public function set description(value:String):void
mouseSensitivityproperty 
public var mouseSensitivity:Number = 2

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Specifies the distance, in pixels, that Flex considers a data point to be under the mouse pointer when the pointer moves around a chart. Flex considers any data point less than mouseSensitivity pixels away to be under the mouse pointer. This value is also used by the getItemAtPoint method.

The default value is 2.

numElementsproperty 
numElements:int  [read-only]

The number of elements in the associates skin


Implementation
    public function get numElements():int
selectionModeproperty 
selectionMode:String

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Specifies whether or not ChartItem objects can be selected. Possible values are none, single, or multiple. Set to none to prevent chart items from being selected. Set to single to allow only one item to be selected at a time. Set to multiple to allow one or more chart items to be selected at a time.

The default value is none.


Implementation
    public function get selectionMode():String
    public function set selectionMode(value:String):void

See also

mx.charts.ChartItem
mx.charts.chartClasses.Series
useElementsproperty 
useElements:Boolean  [read-only]

Whether to use addElement or addChild;


Implementation
    public function get useElements():Boolean
Constructor Detail
ChartBase()Constructor
public function ChartBase()



Method Detail
addElement()method
public function addElement(element:IVisualElement):IVisualElement

This method will add the passed in visual element directly into the associates skin

Parameters

element:IVisualElement

Returns
IVisualElement
attachSkin()method 
override protected function attachSkin():void

collectionChangeHandler()method 
protected function collectionChangeHandler(event:CollectionEvent):void

Collection change handler.

Parameters

event:CollectionEvent

measure()method 
override protected function measure():void

onCreationComplete()method 
protected function onCreationComplete(event:FlexEvent):void

Parameters

event:FlexEvent

onResize()method 
protected function onResize(event:ResizeEvent):void

Parameters

event:ResizeEvent

Event Detail
collectionChange Event
Event Object Type: mx.events.CollectionEvent
CollectionEvent.type property = mx.events.CollectionEvent.COLLECTION_CHANGE

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Dispatched when the ICollectionView has been updated in some way.