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