dojox/charting/action2d/MouseZoomAndPan (version 1.10)

dojox/charting/action2d/ChartAction

Summary

Create an mouse zoom and pan action. You can zoom in or out the data window with mouse wheel. You can scroll using mouse drag gesture. You can toggle between zoom and fit view using double click on the chart.

Usage

var foo = new MouseZoomAndPan(chart,plot,kwArgs);
dojox/charting/action2d/MouseZoomAndPan
Parameter Type Description
chart dojox/charting/Chart

The chart this action applies to.

plot undefined
kwArgs Object
Optional

Optional arguments for the chart action.

Property Summary

Method Summary

Event Summary

  • _onZoom(scroll,event)
  • onDoubleClick(event) Called when the mouse is double is double clicked on the chart.
  • onKeyPress(event) Called when a key is pressed on the chart.
  • onMouseDown(event) Called when mouse is down on the chart.
  • onMouseMove(event) Called when mouse is moved on the chart.
  • onMouseUp(event) Called when mouse is up on the chart.
  • onMouseWheel(event) Called when mouse wheel is used on the chart.

Properties

defaultParams
optionalParams

Methods

_disconnectHandles()
_getDelta(event)
Parameter Type Description
event undefined
Returns:number
connect()

Connect this action to the chart.

destroy()

Do any cleanup needed when destroying parent elements.

disconnect()

Disconnect this action from the chart.

emit(type,event)
Defined by dojo/Evented
Parameter Type Description
type undefined
event undefined
Returns:undefined
on(type,listener)
Defined by dojo/Evented
Parameter Type Description
type undefined
listener undefined
Returns:undefined

Events

_onZoom(scroll,event)
Parameter Type Description
scroll undefined
event undefined
onDoubleClick(event)

Called when the mouse is double is double clicked on the chart. Toggle between zoom and fit chart.

Parameter Type Description
event undefined
onKeyPress(event)

Called when a key is pressed on the chart.

Parameter Type Description
event undefined
onMouseDown(event)

Called when mouse is down on the chart.

Parameter Type Description
event undefined
onMouseMove(event)

Called when mouse is moved on the chart.

Parameter Type Description
event undefined
onMouseUp(event)

Called when mouse is up on the chart.

Parameter Type Description
event undefined
onMouseWheel(event)

Called when mouse wheel is used on the chart.

Parameter Type Description
event undefined
Error in the documentation? Can’t find what you are looking for? Let us know!