Packagecom.amcharts.events
Classpublic class CursorEvent
InheritanceCursorEvent Inheritance flash.events.Event

The CursorEvent class represents events that are specific to the ChartCursor control.



Public Properties
 PropertyDefined by
  data : Object
SerialDataItem object of currently hovered data item.
CursorEvent
  end : Number
Index of the last series in the selected range.
CursorEvent
  finalY : Number
final y coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.
CursorEvent
  finalX : Number
final x coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.
CursorEvent
  index : Number
Index of a series over which chart cursor currently is.
CursorEvent
  initialY : Number
initial y coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.
CursorEvent
  initialX : Number
initial x coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.
CursorEvent
  position : Number
Current position of cursor.
CursorEvent
  selectionHeight : Number
XY Chart only, height of a selection.
CursorEvent
  selectionY : Number
XY Chart only, y of a selection.
CursorEvent
  selectionWidth : Number
XY Chart only, width of a selection.
CursorEvent
  selectionX : Number
XY Chart only, x of a selection.
CursorEvent
  start : Number
Index of the first series in the selected range.
CursorEvent
  zooming : Boolean
Zooming is set with CHANGED event, when user is selecting some area to zoom-in or highlight.
CursorEvent
Public Methods
 MethodDefined by
  
CursorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
CursorEvent
Public Constants
 ConstantDefined by
  CHANGED : String = "changed"
[static]
CursorEvent
  DRAW : String = "onDraw"
[static]
CursorEvent
  ON_HIDE_CURSOR : String = "onHideCursor"
[static]
CursorEvent
  SELECTED : String = "selected"
[static]
CursorEvent
  ZOOMED : String = "zoomed"
[static]
CursorEvent
Property detail
dataproperty
public var data:Object

SerialDataItem object of currently hovered data item.

endproperty 
public var end:Number

Index of the last series in the selected range.

finalYproperty 
public var finalY:Number

final y coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.

finalXproperty 
public var finalX:Number

final x coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.

indexproperty 
public var index:Number

Index of a series over which chart cursor currently is.

initialYproperty 
public var initialY:Number

initial y coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.

initialXproperty 
public var initialX:Number

initial x coordinate if draw is set to true for ChartCursor, and user drawn a line on a chart.

positionproperty 
public var position:Number

Current position of cursor.

selectionHeightproperty 
public var selectionHeight:Number

XY Chart only, height of a selection.

selectionYproperty 
public var selectionY:Number

XY Chart only, y of a selection.

selectionWidthproperty 
public var selectionWidth:Number

XY Chart only, width of a selection.

selectionXproperty 
public var selectionX:Number

XY Chart only, x of a selection.

startproperty 
public var start:Number

Index of the first series in the selected range.

zoomingproperty 
public var zooming:Boolean

Zooming is set with CHANGED event, when user is selecting some area to zoom-in or highlight.

Constructor detail
CursorEvent()constructor
public function CursorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Constant detail
CHANGEDconstant
public static const CHANGED:String = "changed"
DRAWconstant 
public static const DRAW:String = "onDraw"
ON_HIDE_CURSORconstant 
public static const ON_HIDE_CURSOR:String = "onHideCursor"
SELECTEDconstant 
public static const SELECTED:String = "selected"
ZOOMEDconstant 
public static const ZOOMED:String = "zoomed"