Packagecom.amcharts.stock
Classpublic class ChartCursorSettings
InheritanceChartCursorSettings Inheritance flash.events.EventDispatcher

Chart cursor settings. Will be applied to cursors of all charts.

If a property has no default value and it is not defined, default styles and properties of ChartCursor will be used. Check AmChartsBundle documentation to see these defaults.

You can set chart-specific properties and styles directly on ChartCursor classes only if a property doesn't have default value here. Note, properties set have higher priority.



Public Properties
 PropertyDefined by
  bulletsEnabled : Boolean
Specifies if bullet for each graph will follow the cursor.
ChartCursorSettings
  bulletSize : Number
Size of bullets, following the cursor.
ChartCursorSettings
  categoryBalloonAlpha : Number
Opacity of the category balloon.
ChartCursorSettings
  categoryBalloonColor : Number
Opacity of the category balloon.
ChartCursorSettings
  categoryBalloonDateFormats : Array
Array of date format objects.
ChartCursorSettings
  categoryBalloonEnabled : Boolean
Specifies whether category balloon is enabled.
ChartCursorSettings
  crosshair : Boolean
If crosshair is set to true, a value line will also be displayed and will follow the mouse This affects serial chart only, as XY chart shows crosshair by default.
ChartCursorSettings
  cursorAlpha : Number
Opacity of the cursor line.
ChartCursorSettings
  cursorColor : Number
Color of the cursor line.
ChartCursorSettings
  cursorPosition : String
Position of a cursor.
ChartCursorSettings
  enabled : Boolean
Specifies whether cursor is enabled.
ChartCursorSettings
  pan : Boolean
If this is set to true, the user will be able to pan the chart instead of zooming.
ChartCursorSettings
  selectionAlpha : Number
Opacity of the selection.
ChartCursorSettings
  selectWithoutZooming : Boolean
Specifies if the user can select (mark) chart without zooming it.
ChartCursorSettings
  showValueAxisValue : Boolean
Chart Cursor can also display value of Value axis (do not mix with value balloons - they display value of a graph).
ChartCursorSettings
  valueAxisBalloonAlpha : Number
Opacity of value axis balloon.
ChartCursorSettings
  valueAxisBalloonColor : Number
Color of value axis balloon.
ChartCursorSettings
  valueAxisBalloonTextColor : Number
Color of value axis balloon text.
ChartCursorSettings
  valueBalloonsEnabled : Boolean
Specifies whether value balloons are enabled.
ChartCursorSettings
  zoomable : Boolean
Specifies if the user can zoom-in the chart.
ChartCursorSettings
Public Methods
 MethodDefined by
  
Constructor.
ChartCursorSettings
  
categoryBalloonDateFormat(period:String):String
Returns category balloon date format of a period.
ChartCursorSettings
Property detail
bulletsEnabledproperty
bulletsEnabled:Boolean  [read-write]

Specifies if bullet for each graph will follow the cursor.

Implementation
    public function get bulletsEnabled():Boolean
    public function set bulletsEnabled(value:Boolean):void
bulletSizeproperty 
bulletSize:Number  [read-write]

Size of bullets, following the cursor.

Implementation
    public function get bulletSize():Number
    public function set bulletSize(value:Number):void
categoryBalloonAlphaproperty 
categoryBalloonAlpha:Number  [read-write]

Opacity of the category balloon.

Implementation
    public function get categoryBalloonAlpha():Number
    public function set categoryBalloonAlpha(value:Number):void
categoryBalloonColorproperty 
categoryBalloonColor:Number  [read-write]

Opacity of the category balloon.

Implementation
    public function get categoryBalloonColor():Number
    public function set categoryBalloonColor(value:Number):void
categoryBalloonDateFormatsproperty 
categoryBalloonDateFormats:Array  [read-write]

Array of date format objects. Date format object must have "period" and "format" items. Available periods are: fff - millisecond, ss - second, mm - minute, hh - hour, DD - date, WW - week, MM - month, YYYY - year. format can contain any string supported by mx.formatters.DateFormatter class. For example: {period:"DD", format:"MMM DD"}

The default value is [{period:"YYYY", format:"YYYY"}, {period:"MM", format:"MMM DD, YYYY"}, {period:"WW", format:"MMM DD, YYYY"}, {period:"DD", format:"MMM DD, YYYY"}, {period:"hh", format:"JJ:NN"},{period:"mm", format:"JJ:NN"}, {period:"ss", format:"JJ:NN:SS"}, {period:"fff", format:"JJ:NN:SS"}].

Implementation
    public function get categoryBalloonDateFormats():Array
    public function set categoryBalloonDateFormats(value:Array):void
categoryBalloonEnabledproperty 
categoryBalloonEnabled:Boolean  [read-write]

Specifies whether category balloon is enabled.

Implementation
    public function get categoryBalloonEnabled():Boolean
    public function set categoryBalloonEnabled(value:Boolean):void
crosshairproperty 
crosshair:Boolean  [read-write]

If crosshair is set to true, a value line will also be displayed and will follow the mouse This affects serial chart only, as XY chart shows crosshair by default. Vertical (value) zooming is not possible in Serial chart event crosshair is displayed.

Implementation
    public function get crosshair():Boolean
    public function set crosshair(value:Boolean):void
cursorAlphaproperty 
cursorAlpha:Number  [read-write]

Opacity of the cursor line.

Implementation
    public function get cursorAlpha():Number
    public function set cursorAlpha(value:Number):void
cursorColorproperty 
cursorColor:Number  [read-write]

Color of the cursor line.

Implementation
    public function get cursorColor():Number
    public function set cursorColor(value:Number):void
cursorPositionproperty 
cursorPosition:String  [read-write]

Position of a cursor. Specifies where the cursor line should be placed - on the beginning of the period (day, hour, etc) or in the middle (only when parseDates property of categoryAxis is set to true). If you want the cursor to follow mouse instead glueing to the nearest data point, set "mouse" here. Possible values are: start, middle, mouse.

Implementation
    public function get cursorPosition():String
    public function set cursorPosition(value:String):void
enabledproperty 
enabled:Boolean  [read-write]

Specifies whether cursor is enabled.

The default value is true.

Implementation
    public function get enabled():Boolean
    public function set enabled(value:Boolean):void
panproperty 
pan:Boolean  [read-write]

If this is set to true, the user will be able to pan the chart instead of zooming.

Implementation
    public function get pan():Boolean
    public function set pan(value:Boolean):void
selectionAlphaproperty 
selectionAlpha:Number  [read-write]

Opacity of the selection.

Implementation
    public function get selectionAlpha():Number
    public function set selectionAlpha(value:Number):void
selectWithoutZoomingproperty 
selectWithoutZooming:Boolean  [read-write]

Specifies if the user can select (mark) chart without zooming it. zoomable should be set to true in order this to work.

Implementation
    public function get selectWithoutZooming():Boolean
    public function set selectWithoutZooming(value:Boolean):void
showValueAxisValueproperty 
showValueAxisValue:Boolean  [read-write]

Chart Cursor can also display value of Value axis (do not mix with value balloons - they display value of a graph). If this is set to true, value of first value axis will be displayed for each panel.

The default value is false.

Implementation
    public function get showValueAxisValue():Boolean
    public function set showValueAxisValue(value:Boolean):void
valueAxisBalloonAlphaproperty 
valueAxisBalloonAlpha:Number  [read-write]

Opacity of value axis balloon.

Implementation
    public function get valueAxisBalloonAlpha():Number
    public function set valueAxisBalloonAlpha(value:Number):void
valueAxisBalloonColorproperty 
valueAxisBalloonColor:Number  [read-write]

Color of value axis balloon.

Implementation
    public function get valueAxisBalloonColor():Number
    public function set valueAxisBalloonColor(value:Number):void
valueAxisBalloonTextColorproperty 
valueAxisBalloonTextColor:Number  [read-write]

Color of value axis balloon text.

Implementation
    public function get valueAxisBalloonTextColor():Number
    public function set valueAxisBalloonTextColor(value:Number):void
valueBalloonsEnabledproperty 
valueBalloonsEnabled:Boolean  [read-write]

Specifies whether value balloons are enabled. In case they are not, the balloons might be displayed anyway, when the user rolls-over the column or bullet.

The default value is false.

Implementation
    public function get valueBalloonsEnabled():Boolean
    public function set valueBalloonsEnabled(value:Boolean):void
zoomableproperty 
zoomable:Boolean  [read-write]

Specifies if the user can zoom-in the chart. If pan is set to true, zoomable is switched to false automatically.

Implementation
    public function get zoomable():Boolean
    public function set zoomable(value:Boolean):void
Constructor detail
ChartCursorSettings()constructor
public function ChartCursorSettings()

Constructor.

Method detail
categoryBalloonDateFormat()method
public function categoryBalloonDateFormat(period:String):String

Returns category balloon date format of a period.

Parameters
period:String

Returns
String