![]() ![]()  | 
  |
Inheritance MovieClip > UIObject class > UIComponent class > LineChart
ActionScript Class Name com.dwuser.charting.LineChart
The properties of the LineChart class let you control all options and data of the chart.
Setting a property of the LineChart class with ActionScript overrides the parameter of the same name set in the Property inspector or Component inspector.
|   Method  | 
      Description  | 
  
|---|---|
Plots a line on a LineChart component instance.  | 
  |
Removes all lines on a LineChart component instance.  | 
  |
Draws the legend for the chart.  | 
  |
Forces an immediate draw of the chart.  | 
  
The following table lists the methods the LineChart class inherits from the
  UIObject class. When calling these methods from the LineChart object, use the
  form LineChartInstance.methodName.
| 
       Method  | 
    
       Description  | 
  
|---|---|
| 
       
  | 
    
       Creates an object on the specified class.  | 
  
| 
       
  | 
    
       Creates a subobject on an object.  | 
  
| 
       
  | 
    
       Destroys a component instance.  | 
  
| 
       
  | 
    
       Calls a function when parameters have been set in the Property and Component inspectors.  | 
  
| 
       
  | 
    
       Gets the style property from the style declaration or object.  | 
  
| 
       
  | 
    
       Marks the object so it will be redrawn on the next frame interval.  | 
  
| 
       
  | 
    
       Moves the object to the requested position.  | 
  
| 
       
  | 
    
       Forces validation of the object so it is drawn in the current frame.  | 
  
| 
       
  | 
    
       Resizes the object to the requested size.  | 
  
| 
       
  | 
    
       Sets a skin in the object.  | 
  
| 
       
  | 
    
       Sets the style property on the style declaration or object.  | 
  
The following table lists the methods the LineChart class inherits from the
  UIComponent class. When calling these methods from the LineChart object, use
  the form LineChartInstance.methodName.
| 
       Method  | 
    
       Description  | 
  
|---|---|
| 
       
  | 
    
       Returns a reference to the object that has focus.  | 
  
| 
       
  | 
    
       Sets focus to the component instance.  | 
  
The following table lists properties of the LineChart class.
| 
       Property  | 
    
       Description  | 
  
|---|---|
| 
       A hexadecimal value indicating the line color for the edges.  | 
  |
| 
       The prefix all labels should have attached to them.  | 
  |
| 
       The postfix all labels should have attached to them.  | 
  |
| 
       A Boolean value that indicates whether the chart starts at zero.  | 
  |
| 
       The array of the points on the horizontal axis  | 
  
The following table lists the properties the LineChart class inherits from
  the UIObject class. When accessing these properties from the LineChart object,
  use the form LineChartInstance.propertyName.
| 
       Property  | 
    
       Description  | 
  
|---|---|
| 
       
  | 
    
       The position of the bottom edge of the object, relative to the bottom edge of its parent. Read-only.  | 
  
| 
       
  | 
    
       The height of the object, in pixels. Read-only.  | 
  
| 
       
  | 
    
       The left edge of the object, in pixels. Read-only.  | 
  
| 
       
  | 
    
       The position of the right edge of the object, relative to the right edge of its parent. Read-only.  | 
  
| 
       
  | 
    
       A number indicating the scaling factor in the x direction of the object, relative to its parent.  | 
  
| 
       
  | 
    
       A number indicating the scaling factor in the y direction of the object, relative to its parent.  | 
  
| 
       
  | 
    
       The position of the top edge of the object, relative to its parent. Read-only.  | 
  
| 
       
  | 
    
       A Boolean value indicating whether the object is visible (  | 
  
| 
       
  | 
    
       The width of the object, in pixels. Read-only.  | 
  
| 
       
  | 
    
       The left edge of the object, in pixels. Read-only.  | 
  
| 
       
  | 
    
       The top edge of the object, in pixels. Read-only.  | 
  
The following table lists the properties the LineChart class inherits from
  the UIComponent class. When accessing these properties from the LineChart object,
  use the form LineChartInstance.propertyName.
| 
       Property  | 
    
       Description  | 
  
|---|---|
| 
       
  | 
    
       Indicates whether the component can receive focus and input.  | 
  
| 
       
  | 
    
       A number indicating the tab order for a component in a document.  | 
  
There are no methods exclusive to the LineChart class.
The following table lists the events the LineChart class inherits from the UIObject class.
| 
       Event  | 
    
       Description  | 
  
|---|---|
| 
       
  | 
    
       Broadcast when an object is about to draw its graphics.  | 
  
| 
       
  | 
    
       Broadcast when an object’s state changes from visible to invisible.  | 
  
| 
       
  | 
    
       Broadcast when subobjects are being created.  | 
  
| 
       
  | 
    
       Broadcast when the object has moved.  | 
  
| 
       
  | 
    
       Broadcast when an object has been resized.  | 
  
| 
       
  | 
    
       Broadcast when an object’s state changes from invisible to visible.  | 
  
| 
       
  | 
    
       Broadcast when the subobjects are being unloaded.  | 
  
The following table lists the events the LineChart class inherits from the UIComponent class.
| 
       Event  | 
    
       Description  | 
  
|---|---|
| 
       
  | 
    
       Broadcast when an object receives focus.  | 
  
| 
       
  | 
    
       Broadcast when an object loses focus.  | 
  
| 
       
  | 
    
       Broadcast when a key is pressed.  | 
  
| 
       
  | 
    
       Broadcast when a key is released.  | 
  
![]() ![]()  | 
  |