compwright/chartjs-plugin-draggable

Compatibility with chart types

sdee opened this issue · 2 comments

sdee commented

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.

Hi, @sdee

Did you succeed to work with the Radar Chart type?

Thank You.

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.