score:11

Accepted answer

ꜰɪʀꜱᴛ

add hammer.js to your project :

<script src="http://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js"></script>

ꜱᴇᴄᴏɴᴅ

enable pan option for your chart, like so :

options: {
   pan: {
      enabled: true,
      mode: 'x',
   },
   ...
}

see demo on jsfiddle

score:0

maybe you can use this plugin. see the example.

basically you need to import and initialize it. by default, if you hold shift and drag the chart, it will pan, but you can also set a custom input trigger.


Related Query

More Query from same tag