Package | com.flexicious.components.charts |
Class | public class CartesianChart |
Inheritance | CartesianChart TinyChartBase ChartBase spark.components.supportClasses.SkinnableComponent |
Implements | IMultiSeriesChart |
Subclasses | BarChart, BubbleChart, ColumnChart, HLOCChart, LineChart |
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Property | Defined By | ||
---|---|---|---|
animate : Boolean [read-only]
Should the chart animate?
| TinyChartBase | ||
autoAdjust : Boolean = true
Whether or not to adjust the min and max values for this series so that the axis bound to this series
will pad end values to nicely distribute the numbers
| TinyChartBase | ||
backgroundEnabled : Boolean = true
Flag whether or not to draw the background
| TinyChartBase | ||
chartType : String [read-only]
One of the following constants, on basis of which chart type this is. | ChartBase | ||
currentTip : IDataTipRenderer | TinyChartBase | ||
data : Object | ChartBase | ||
dataProvider : Object [override]
Specifies the data provider for the chart. | TinyChartBase | ||
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 | ||
elementsToBlur : Array [read-only] | TinyChartBase | ||
elementToCenter : IUIComponent [read-only] | TinyChartBase | ||
firstSeries : Series [read-only]
The first series
| TinyChartBase | ||
horizontalAxisHeight : Number [read-only]
Height of the horizontal axis
| CartesianChart | ||
horizontalGridLines : Boolean
Whether or not to draw grid lines. | CartesianChart | ||
interval : Number
For IBarChart and IColumnChart support, where you have an axis, you can define a custom interval. | TinyChartBase | ||
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 | ||
painter : TinyChartPainterBase
The default painter for this chart. | TinyChartBase | ||
rightGutter : Number [read-only]
Amount of space to leave on the right hand side for overrun of larger label values. | CartesianChart | ||
secondarySeries : Array
For multi series charts, you can add secondary series to this array. | TinyChartBase | ||
selectedChartItems : Array [read-only]
Specifies an array of all the selected ChartItem objects in the chart. | TinyChartBase | ||
selectionMode : String
Specifies whether or not ChartItem objects can be selected. | ChartBase | ||
series : Array
An array of Series objects that define the chart data. | TinyChartBase | ||
showDataTips : Boolean = true
Flag to show data tips for this chart
| TinyChartBase | ||
showSpinnerOnCreationComplete : Boolean | TinyChartBase | ||
spinner : ISpinner | TinyChartBase | ||
spinnerBehavior : SpinnerBehavior | TinyChartBase | ||
spinnerFactory : IFactory
Factory responsible for instantiating a new spinner. | TinyChartBase | ||
spinnerLabel : String
The label of the spinner control, you can use styles
to control the appearance. | TinyChartBase | ||
spinnerParent : Object [read-only]
The parent component to add the spinner to
| TinyChartBase | ||
threeDimensional : Boolean
Is this a 3D chart? For the 2.9 release, only bar and column charts support 3d. | TinyChartBase | ||
threeDimensionalShadowRatio : Number
If threeDimensional is set to true, the ratio of the shadow for the 3D perspective. | TinyChartBase | ||
tooltipBehavior : TooltipBehavior | TinyChartBase | ||
topGutter : Number [read-only]
Amount of space to leave on the right hand side for overrun of larger label values. | CartesianChart | ||
type : String
The type of bar/column chart to render. | CartesianChart | ||
useElements : Boolean [read-only]
Whether to use addElement or addChild;
| ChartBase | ||
verticalAxisWidth : Number [read-only]
Width of the vertical axis
| CartesianChart | ||
verticalGridLines : Boolean
Whether or not to draw vertical grid lines. | CartesianChart |
Method | Defined By | ||
---|---|---|---|
CartesianChart | |||
addElement(element:IVisualElement):IVisualElement
This method will add the passed in visual element directly into the associates skin
| ChartBase | ||
drawChart():void
This method actually draws the chart. | TinyChartBase | ||
findDataPoints(x:Number, y:Number, checkInteractivity:Boolean = false, sensitivity:int = -1):Array
Returns an array of HitData objects that describe
the nearest data point to the coordinates passed to the method. | TinyChartBase | ||
getHorizontalAxisMarkerLength():Number
Length of the horizontal axis ticks
| CartesianChart | ||
getPlotPoints(item:Object):Array
Gets all the plot points across all series for this item. | TinyChartBase | ||
getVerticalAxisMarkerLength():Number
Length of the vertical axis ticks
| CartesianChart | ||
hideSpinner():void | TinyChartBase | ||
invalidateChart():void
Triggers a redraw of the chart area. | TinyChartBase | ||
invalidateChartArea():void
Triggers a redraw of the chart area. | TinyChartBase | ||
invalidateChartSize():void
Triggers a redraw of the chart area. | TinyChartBase | ||
isItemSelected(item:Object, series:Series = null):Boolean
Iterates over selectedChartItems and checks to see if any chart item has specified item
selected. | TinyChartBase | ||
isItemUnderMouse(item:Object, series:Series = null, first:Boolean = false):Boolean
Iterates over _itemsUnderMouse and checks to see if any chart item has specified item
selected. | TinyChartBase | ||
showSpinner(msg:String):void | TinyChartBase |
Method | Defined By | ||
---|---|---|---|
attachSkin():void [override] | ChartBase | ||
collectionChangeHandler(event:CollectionEvent):void [override]
Collection change handler. | TinyChartBase | ||
defaultDataTipFunction(hitData:HitData):String
Datatip function
| TinyChartBase | ||
measure():void [override]
| ChartBase | ||
mouseClickHandler(event:MouseEvent):void
Handler for the mouse click event. | TinyChartBase | ||
mouseDoubleClickHandler(event:MouseEvent):void
Handler for the double click event. | TinyChartBase | ||
mouseDownHandler(event:MouseEvent):void
Handler for the mouse down event. | TinyChartBase | ||
mouseMoveHandler(event:MouseEvent):void | TinyChartBase | ||
mouseOutHandler(event:MouseEvent):void
Handler for the mouse out event. | TinyChartBase | ||
mouseUpHandler(event:MouseEvent):void
Handler for the mouse over event. | TinyChartBase | ||
onCreationComplete(event:FlexEvent):void [override] | TinyChartBase | ||
onResize(event:ResizeEvent):void [override] | TinyChartBase | ||
partAdded(partName:String, instance:Object):void [override] | CartesianChart |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
Skin Part | Description | Defined By | ||
---|---|---|---|---|
horizontalAxis:IAxis | Required: false Part Type: Static Defines the labels, tick marks, and data position for items on the x-axis. Use either the HorizontalAxis class or the CategoryAxis class to set the properties of the HorizontalAxis as a child tag in MXML or create a HorizontalAxis or CategoryAxis object in ActionScript. | CartesianChart | ||
verticalAxis:IAxis | Required: false Part Type: Static Defines the labels, tick marks, and data position for items on the y-axis. Use either the HorizontalAxis class or the CategoryAxis class to set the properties of the horizontal axis as a child tag in MXML or create a HorizontalAxis or CategoryAxis object in ActionScript. | CartesianChart |
horizontalAxisHeight | property |
horizontalAxisHeight:Number
[read-only] Height of the horizontal axis
This property can be used as the source for data binding.
public function get horizontalAxisHeight():Number
horizontalGridLines | property |
horizontalGridLines:Boolean
Whether or not to draw grid lines.
This property can be used as the source for data binding.
public function get horizontalGridLines():Boolean
public function set horizontalGridLines(value:Boolean):void
rightGutter | property |
rightGutter:Number
[read-only] Amount of space to leave on the right hand side for overrun of larger label values.
This property can be used as the source for data binding.
public function get rightGutter():Number
topGutter | property |
topGutter:Number
[read-only] Amount of space to leave on the right hand side for overrun of larger label values.
This property can be used as the source for data binding.
public function get topGutter():Number
type | property |
type:String
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
The type of bar/column chart to render. Possible values are:
"clustered"
:
Bars are grouped by category.
This is the default value."overlaid"
:
Multiple bars are rendered on top of each other by category,
with the last series specified on top."stacked"
:
Bars are stacked end to end and grouped by category.
Each bar represents the cumulative value of the values beneath it."100%"
:
Bars are stacked end to end, adding up to 100%.
Each bar represents the percent that it contributes
to the sum of the values for that category. public function get type():String
public function set type(value:String):void
verticalAxisWidth | property |
verticalAxisWidth:Number
[read-only] Width of the vertical axis
This property can be used as the source for data binding.
public function get verticalAxisWidth():Number
verticalGridLines | property |
verticalGridLines:Boolean
Whether or not to draw vertical grid lines.
This property can be used as the source for data binding.
public function get verticalGridLines():Boolean
public function set verticalGridLines(value:Boolean):void
CartesianChart | () | Constructor |
public function CartesianChart()
getHorizontalAxisMarkerLength | () | method |
public function getHorizontalAxisMarkerLength():Number
Length of the horizontal axis ticks
ReturnsNumber |
getVerticalAxisMarkerLength | () | method |
public function getVerticalAxisMarkerLength():Number
Length of the vertical axis ticks
ReturnsNumber |
partAdded | () | method |
override protected function partAdded(partName:String, instance:Object):void
Parameters
partName:String | |
instance:Object |