Packagecom.scottlogic.sparkline
Classpublic class TernarySparkline
InheritanceTernarySparkline Inheritance ColumnSparklineBase Inheritance SparklineBase Inheritance mx.core.UIComponent

A three-state column sparkline. Values above the zero value will be indicated using an upward column and values below the zero value with a downward column. No further indication is given of the actual value, i.e. all positive values and negative value columns will have the same height.



Public Properties
 PropertyDefined By
 Inheriteddata : Object
The data property lets you pass a value to the component when you use it as an item renderer or item editor.
SparklineBase
 InheriteddataProvider : Object
The data provider for this sparkline.
SparklineBase
 InheritedlistData : BaseListData
When a component is used as a drop-in item renderer or drop-in item editor, Flex initializes the listData property of the component with the appropriate data from the list control.
SparklineBase
 InheritedxField : String
Specifies the field of the data provider that determines the x-axis location of each data point.
SparklineBase
 InheritedyField : String
Specifies the field of the data provider that determines the y-axis location of each data point.
SparklineBase
 InheritedzeroValue : Number
ColumnSparklineBase
Protected Properties
 PropertyDefined By
 Inheritedbounds : Rectangle
The bounds within which the line part of the sparkline should be restricted.
SparklineBase
 InheritedrenderData : ColumnSparklineRenderData
A cache of the data required for rendering the column sparkline, i.e.
ColumnSparklineBase
Public Methods
 MethodDefined By
  
Constructor
TernarySparkline
Protected Methods
 MethodDefined By
 Inherited
drawBackground(width:Number, height:Number):void
Draws the background for the sparkline.
SparklineBase
 Inherited
Marks the current render data cache as dirty.
SparklineBase
 Inherited
updateBounds(width:Number, height:Number):void
Ensures the bounds are up to date.
SparklineBase
  
updateData():void
[override] Updates the render data cache to reflect the current data provider values.
TernarySparkline
 Inherited
If the current render data cache is considered dirty then it updates the cache.
SparklineBase
Styles
 Style Description Defined By
 InheritedType: mx.graphics.IFill CSS Inheritance: no
Sets the background fill for the sparkline.
SparklineBase
 InheritedType: Number Format: Length CSS Inheritance: no
Sets the horizontal gap between columns.
ColumnSparklineBase
 InheritedType: mx.graphics.IFill CSS Inheritance: no
Sets the fill for positive value columns.
ColumnSparklineBase
 InheritedType: mx.graphics.IStroke CSS Inheritance: no
Sets the stroke for negative value columns.
ColumnSparklineBase
 InheritedType: Number Format: Length CSS Inheritance: no
Sets the padding to the bottom of the sparkline.
SparklineBase
 InheritedType: Number Format: Length CSS Inheritance: no
Sets the padding to the left of the sparkline.
SparklineBase
 InheritedType: Number Format: Length CSS Inheritance: no
Sets the padding to the right of the sparkline.
SparklineBase
 InheritedType: Number Format: Length CSS Inheritance: no
Sets the padding to the top of the sparkline.
SparklineBase
 InheritedType: mx.graphics.IFill CSS Inheritance: no
Sets the fill for positive value columns.
ColumnSparklineBase
 InheritedType: mx.graphics.IStroke CSS Inheritance: no
Sets the stroke for positive value columns.
ColumnSparklineBase
 InheritedType: mx.graphics.IStroke CSS Inheritance: no
Sets the stroke for the line used to indicate a zero value.
ColumnSparklineBase
Constructor Detail
TernarySparkline()Constructor
public function TernarySparkline()

Constructor

Method Detail
updateData()method
override protected function updateData():void

Updates the render data cache to reflect the current data provider values. Maps the data provider values to screen coordinates.