Package com.bit101.charts
Class public class LineChart
Inheritance LineChart InheritanceChart InheritanceComponent Inheritance flash.display.Sprite



Public Properties
  Property Defined By
  Inherited autoScale : Boolean
Sets/gets whether the graph will automatically set its own max and min values based on the data values.
Chart
  Inherited data : Array
Sets/gets the data array.
Chart
  Inherited enabled : Boolean
Sets/gets whether this component is enabled or not.
Component
  Inherited gridColor : uint
Sets / gets the color of the grid lines.
Chart
  Inherited gridSize : int
Sets / gets the size of the grid.
Chart
  Inherited height : Number
[override] Sets/gets the height of the component.
Component
  Inherited labelPrecision : int
Sets/gets the amount of decimal places shown in the scale labels.
Chart
    lineColor : uint
Sets/gets the color of the line in the graph.
LineChart
    lineWidth : Number
Sets/gets the width of the line in the graph.
LineChart
  Inherited maximum : Number
Sets/gets the maximum value of the graph.
Chart
  Inherited minimum : Number
Sets/gets the minimum value of the graph.
Chart
  Inherited showGrid : Boolean
Sets / gets whether or not the grid will be shown.
Chart
  Inherited showScaleLabels : Boolean
Sets/gets whether or not labels for max and min graph values will be shown.
Chart
  Inherited tag : int
Sets/gets in integer that can identify the component.
Component
  Inherited width : Number
[override] Sets/gets the width of the component.
Component
  Inherited x : Number
[override] [write-only] Overrides the setter for x to always place the component on a whole pixel.
Component
  Inherited y : Number
[override] [write-only] Overrides the setter for y to always place the component on a whole pixel.
Component
Protected Properties
  Property Defined By
  Inherited _autoScale : Boolean = true
Chart
  Inherited _chartHolder : Shape
Chart
  Inherited _data : Array
Chart
  Inherited _enabled : Boolean = true
Component
  Inherited _height : Number = 0
Component
  Inherited _labelPrecision : int = 0
Chart
    _lineColor : uint = 0x999999
LineChart
    _lineWidth : Number = 1
LineChart
  Inherited _maximum : Number = 100
Chart
  Inherited _maxLabel : Label
Chart
  Inherited _minimum : Number = 0
Chart
  Inherited _minLabel : Label
Chart
  Inherited _panel : Panel
Chart
  Inherited Ronda : Class
Component
  Inherited _showScaleLabels : Boolean = false
Chart
  Inherited _tag : int = -1
Component
  Inherited _width : Number = 0
Component
Public Methods
  Method Defined By
   
LineChart(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, data:Array = null)
Constructor
LineChart
  Inherited
draw():void
[override] Draws the visual ui of the component.
Chart
  Inherited
initStage(stage:Stage):void
[static] Utility method to set up usual stage align and scaling.
Component
  Inherited
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
Component
  Inherited
setSize(w:Number, h:Number):void
Sets the size of the component.
Component
Protected Methods
  Method Defined By
  Inherited
addChildren():void
[override] Creates and adds the child display objects of this component.
Chart
   
drawChart():void
[override] Graphs the numeric data in the chart.
LineChart
  Inherited
getMaxValue():Number
Gets the highest value of the numbers in the data array.
Chart
  Inherited
getMinValue():Number
Gets the lowest value of the numbers in the data array.
Chart
  Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
  Inherited
init():void
[override] Initializes the component.
Chart
  Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
  Inherited
onInvalidate(event:Event):void
Called one frame after invalidate is called.
Component
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
Property Detail
_lineColor property
protected var _lineColor:uint = 0x999999

_lineWidth property  
protected var _lineWidth:Number = 1

lineColor property  
lineColor:uint

Sets/gets the color of the line in the graph.


Implementation
    public function get lineColor():uint
    public function set lineColor(value:uint):void
lineWidth property  
lineWidth:Number

Sets/gets the width of the line in the graph.


Implementation
    public function get lineWidth():Number
    public function set lineWidth(value:Number):void
Constructor Detail
LineChart () Constructor
public function LineChart(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, data:Array = null)

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this Label.
 
xpos:Number (default = 0) — The x position to place this component.
 
ypos:Number (default = 0) — The y position to place this component.
 
data:Array (default = null) — The array of numeric values to graph.
Method Detail
drawChart () method
override protected function drawChart():void

Graphs the numeric data in the chart.