Packagecom.scottlogic.sparkline.sparklineClasses
Classpublic class ColumnSparklineBase
InheritanceColumnSparklineBase Inheritance SparklineBase Inheritance mx.core.UIComponent
Subclasses ColumnSparkline, TernarySparkline

Base functionality for all column sparkline types.



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
  zeroValue : Number
ColumnSparklineBase
Protected Properties
 PropertyDefined By
 Inheritedbounds : Rectangle
The bounds within which the line part of the sparkline should be restricted.
SparklineBase
  renderData : ColumnSparklineRenderData
A cache of the data required for rendering the column sparkline, i.e.
ColumnSparklineBase
Public Methods
 MethodDefined By
  
Constructor
ColumnSparklineBase
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
 Inherited
updateData():void
Updates the render data cache to reflect the current data provider values.
SparklineBase
 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
  
horizontalGap
Type: Number Format: Length CSS Inheritance: no
Sets the horizontal gap between columns. The default value is 1.
ColumnSparklineBase
  
negativeFill
Type: mx.graphics.IFill CSS Inheritance: no
Sets the fill for positive value columns. The default is solid grey (0x828282).
ColumnSparklineBase
  
negativeStroke
Type: mx.graphics.IStroke CSS Inheritance: no
Sets the stroke for negative value columns. The default is no stroke.
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
  
positiveFill
Type: mx.graphics.IFill CSS Inheritance: no
Sets the fill for positive value columns. The default is solid grey (0x828282).
ColumnSparklineBase
  
positiveStroke
Type: mx.graphics.IStroke CSS Inheritance: no
Sets the stroke for positive value columns. The default is no stroke.
ColumnSparklineBase
  
zeroStroke
Type: mx.graphics.IStroke CSS Inheritance: no
Sets the stroke for the line used to indicate a zero value. The default colour is grey (0x828282). The default value for the width is 1.
ColumnSparklineBase
Property Detail
renderDataproperty
protected var renderData:ColumnSparklineRenderData

A cache of the data required for rendering the column sparkline, i.e. with the data values appropriately mapped to screen coordinates.

zeroValueproperty 
zeroValue:Number


Implementation
    public function get zeroValue():Number
    public function set zeroValue(value:Number):void
Constructor Detail
ColumnSparklineBase()Constructor
public function ColumnSparklineBase()

Constructor