How to change Mouse event and Keyboard Input In Dygraphs.
I want to change the Range selector or X Axis movement to keyboard and mouse combinations
Range Selector [Drag] --> Shift + Drag
X Axis movement [ Shift + Drag ] --> Ctrl + Drag
BR
How to change Mouse event and Keyboard Input In Dygraphs.
I want to change the Range selector or X Axis movement to keyboard and mouse combinations
Range Selector [Drag] --> Shift + Drag
X Axis movement [ Shift + Drag ] --> Ctrl + Drag
BR
To achieve custom mouse and keyboard interactions in Dygraphs for range selection and X-axis movement, you can listen for mouse and keyboard events and then handle them accordingly to change the behavior.
You can modify the
handleMouseMovefunction to handleX-axismovement when theCtrlkey is pressed, similar to how range selection is handled with theShiftkey. Additionally, you can adjust the logic to suit your specific requirements.Ref: https://dygraphs.com/options.html