compwright / chartjs-plugin-draggable

Draggable element plugin for Chart.js
MIT License
44 stars 17 forks source link

Compatibility with chart types #6

Open sdee opened 7 years ago

sdee commented 7 years ago

I was wondering if this plug-in was designed to work with all chart types? I played around some with trying to get this to work with the Radar Chart but did not have any luck.

valentin-anamorphik commented 6 years ago

Hi, @sdee

Did you succeed to work with the Radar Chart type?

Thank You.

olivermuc commented 6 years ago

I just made it work with Bubble Charts. It's quite possible but requires you to extend ChartJS with a new custom RadarChart element that supports a "draggable" flag/field close to the chart element object that gets passed to chartjs-plugin-draggable. On top you need to of course change the chartjs-plugin-draggable element handling scales / values / x-y coordinates etc... Took me 2 days - but works pretty flawlessly.