PackageTop Level
Classpublic class Charts
InheritanceCharts Inheritance YUIAdapter Inheritance flash.display.Sprite

A wrapper for the Astra Charts components to allow them to be used by the YUI library.



Protected Properties
 PropertyDefined by
 InheritedelementID : String
The element id that references the SWF in the HTML.
YUIAdapter
 InheritedjavaScriptEventHandler : String
The globally accessible JavaScript function that accepts events through ExternalInterface.
YUIAdapter
Public Methods
 MethodDefined by
  
Constructor.
Charts
 Inherited
getAltText():String
Gets the alternative text for assistive technology.
YUIAdapter
  
Returns the field used in complex objects to access categories to be displayed on the PieChart.
Charts
  
Returns the category names.
Charts
  
getDataField():String
Returns the field used in complex objects to access data to be displayed on the PieChart.
Charts
  
Returns the title displayed next to the vertical axis.
Charts
  
Returns the field used in complex objects to access data to be displayed on the horizontal axis.
Charts
  
Returns the title displayed next to the vertical axis.
Charts
  
Returns the field used in complex objects to access data to be displayed on the vertical axis.
Charts
 Inherited
setAltText(value:String):void
Sets the alternative text for assistive technology.
YUIAdapter
  
setCategoryField(value:String):void
Sets the field used in complex objects to access categories to be displayed on the PieChart.
Charts
  
setCategoryNames(value:Array):void
Sets the category names used if the data requires a category axis.
Charts
  
setDataField(value:String):void
Sets the field used in complex objects to access data to be displayed on the PieChart.
Charts
  
setDataProvider(value:Array):void
Charts
  
setDataTipFunction(value:String):void
Sets the JavaScript function to call to generate the chart's data tip.
Charts
  
setHorizontalAxis(value:Object):void
Updates the horizontal axis with a new type.
Charts
  
setHorizontalAxisTitle(value:String):void
Sets the title displayed next to the horizontal axis.
Charts
  
setHorizontalField(value:String):void
Sets the field used in complex objects to access data to be displayed on the horizontal axis.
Charts
  
setSeriesStyles(styles:Array):void
Charts
  
setStyle(name:String, value:Object, json:Boolean = true):void
Charts
  
setStyles(styles:String):void
Accepts a JSON-encoded set of styles for the chart itself.
Charts
  
setType(value:String):void
Creates a chart instance based on the specified type.
Charts
  
setVerticalAxis(value:Object):void
Updates the vertical axis with a new type.
Charts
  
setVerticalAxisTitle(value:String):void
Sets the title displayed next to the vertical axis.
Charts
  
setVerticalField(value:String):void
Sets the field used in complex objects to access data to be displayed on the vertical axis.
Charts
Protected Methods
 MethodDefined by
  
chartItemExtraEventHandler(event:MouseEvent):void
Charts
 Inherited
To be overridden by subclasses to add ExternalInterface callbacks.
YUIAdapter
 Inherited
log(message:Object, category:String = null):void
Sends a log message to the YUI Logger.
YUIAdapter
  
setAxisStyles(styles:Object, axisName:String):void
Charts
  
setDataTipStyles(styles:Object):void
Charts
  
setLegendStyles(styles:Object):void
Charts
 Inherited
showFatalError(message:Object):void
YUIAdapter
Constructor detail
Charts()constructor
public function Charts()

Constructor.

Method detail
chartItemExtraEventHandler()method
protected function chartItemExtraEventHandler(event:MouseEvent):voidParameters
event:MouseEvent
getCategoryField()method 
public function getCategoryField():String

Returns the field used in complex objects to access categories to be displayed on the PieChart.

Returns
String
getCategoryNames()method 
public function getCategoryNames():Array

Returns the category names.

Returns
Array
getDataField()method 
public function getDataField():String

Returns the field used in complex objects to access data to be displayed on the PieChart.

Returns
String
getHorizontalAxisTitle()method 
public function getHorizontalAxisTitle():String

Returns the title displayed next to the vertical axis.

Returns
String
getHorizontalField()method 
public function getHorizontalField():String

Returns the field used in complex objects to access data to be displayed on the horizontal axis.

Returns
String
getVerticalAxisTitle()method 
public function getVerticalAxisTitle():String

Returns the title displayed next to the vertical axis.

Returns
String
getVerticalField()method 
public function getVerticalField():String

Returns the field used in complex objects to access data to be displayed on the vertical axis.

Returns
String
setAxisStyles()method 
protected function setAxisStyles(styles:Object, axisName:String):voidParameters
styles:Object
 
axisName:String
setCategoryField()method 
public function setCategoryField(value:String):void

Sets the field used in complex objects to access categories to be displayed on the PieChart.

Parameters
value:String
setCategoryNames()method 
public function setCategoryNames(value:Array):void

Sets the category names used if the data requires a category axis. This field should be used if the data does not define the category values directly.

Parameters
value:Array
setDataField()method 
public function setDataField(value:String):void

Sets the field used in complex objects to access data to be displayed on the PieChart.

Parameters
value:String
setDataProvider()method 
public function setDataProvider(value:Array):voidParameters
value:Array
setDataTipFunction()method 
public function setDataTipFunction(value:String):void

Sets the JavaScript function to call to generate the chart's data tip.

Parameters
value:String
setDataTipStyles()method 
protected function setDataTipStyles(styles:Object):voidParameters
styles:Object
setHorizontalAxis()method 
public function setHorizontalAxis(value:Object):void

Updates the horizontal axis with a new type.

Parameters
value:Object
setHorizontalAxisTitle()method 
public function setHorizontalAxisTitle(value:String):void

Sets the title displayed next to the horizontal axis.

Parameters
value:String
setHorizontalField()method 
public function setHorizontalField(value:String):void

Sets the field used in complex objects to access data to be displayed on the horizontal axis. If the input data is XML, and the field is an attribute, be sure to include the "

Parameters
value:String
setLegendStyles()method 
protected function setLegendStyles(styles:Object):voidParameters
styles:Object
setSeriesStyles()method 
public function setSeriesStyles(styles:Array):voidParameters
styles:Array
setStyle()method 
public function setStyle(name:String, value:Object, json:Boolean = true):voidParameters
name:String
 
value:Object
 
json:Boolean (default = true)
setStyles()method 
public function setStyles(styles:String):void

Accepts a JSON-encoded set of styles for the chart itself. Flash Player versions below 9.0.60 don't encode ExternalInterface calls correctly!

Parameters
styles:String
setType()method 
public function setType(value:String):void

Creates a chart instance based on the specified type.

Parameters
value:String
setVerticalAxis()method 
public function setVerticalAxis(value:Object):void

Updates the vertical axis with a new type.

Parameters
value:Object
setVerticalAxisTitle()method 
public function setVerticalAxisTitle(value:String):void

Sets the title displayed next to the vertical axis.

Parameters
value:String
setVerticalField()method 
public function setVerticalField(value:String):void

Sets the field used in complex objects to access data to be displayed on the vertical axis. If the input data is XML, and the field is an attribute, be sure to include the "

Parameters
value:String