dojox/charting/action2d/TouchZoomAndPan (version 1.10)

dojox/charting/action2d/ChartAction

Summary

Create a touch zoom and pan action. You can zoom out or in the data window with pinch and spread gestures except on Android 2.x and WP8 devices. You can scroll using drag gesture. Finally this is possible to navigate between a fit window and a zoom one using double tap gesture.

Usage

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

The chart this action applies to.

plot undefined
kwArgs Object
Optional

Optional arguments for the action.

Property Summary

Method Summary

Event Summary

  • onDoubleTap(event) Called when double tap is performed on the chart.
  • onTouchEnd(event) Called when touch is ended on the chart.
  • onTouchMove(event) Called when touch is moved on the chart.
  • onTouchStart(event) Called when touch is started on the chart.

Properties

defaultParams
optionalParams

Methods

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

Connect this action to the chart. On iOS this adds a new glass view plot to the chart that's why Chart.render() must be called after connect.

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

onDoubleTap(event)

Called when double tap is performed on the chart.

Parameter Type Description
event undefined
onTouchEnd(event)

Called when touch is ended on the chart.

Parameter Type Description
event undefined
onTouchMove(event)

Called when touch is moved on the chart.

Parameter Type Description
event undefined
onTouchStart(event)

Called when touch is started on the chart.

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