highcharts / highcharts-vue

Other
686 stars 150 forks source link

How do you add touch/mouse support for the 3d Scatter Chart #74

Closed tylerking closed 5 years ago

tylerking commented 5 years ago

Hello. Wondering if anyone knew how exactly you would add mouse and touch events for rotation shown in this chart example:

https://www.highcharts.com/demo/3d-scatter-draggable

Thanks in advance.

Denyllon commented 5 years ago

Hello @doitliketyler ,

Thank you for contacting us. There shouldn't be any problem with implementing that. Just need to move the code into separate file, wrap it with new function, where you will pass a specific chart instance, and then call that function within mounted hook point of your component. Please take a look at example below.

Live example: https://codesandbox.io/s/66olzvwpr

Kind regards!