Ruler-pan interaction
A ruler-pan interaction allows you to pan an axis without having to select any
buttons in the axes toolbar. To enable ruler panning, set the
Interactions
property of the axes to a
rulerPanInteraction
object. When this interaction is enabled, you can pan
an axis by dragging it.
To enable multiple interactions, set the Interactions
property to an
array of objects.
rp = rulerPanInteraction
creates a ruler-pan interaction
object.
rp = rulerPanInteraction('Dimensions',d)
sets the Dimensions
property.
Use this property to constrain panning to a single axis or a subset of axes. For example,
rp = rulerPanInteraction('Dimensions','x')
constrains panning to the
x-axis.
The rulerPanInteraction
function is not supported in the Live
Editor.
In most cases, the axes have a default set of interactions which depend on the type of chart you are displaying. You can replace the default set with a new set of interactions, but you cannot access or modify any of the interactions in the default set.
dataTipInteraction
| disableDefaultInteractivity
| enableDefaultInteractivity
| panInteraction
| regionZoomInteraction
| rotateInteraction
| zoomInteraction