artus9033 / chartjs-plugin-dragdata

Draggable data points plugin for Chart.js
MIT License
268 stars 56 forks source link

dragData for bubble chart #3

Closed FlintMayers closed 6 years ago

FlintMayers commented 6 years ago

Awesome plugin. Works really well with line charts, however, I can't seem to make it work with bubble charts. Whenever the data point bubble is dragged it disappears.

chrispahm commented 6 years ago

Glad to hear that you like the plugin! For now, unfortunately only line charts are supported. With the bubble charts, I guess one would need to discuss the expected behavior while dragging first. Would you like to increase/decrease the Bubble’s size on mousemove up/down or rather shift it up/down/left/right. Probably a mix of left/right click mouse events? Let me know what you think, then we can proceed.

FlintMayers commented 6 years ago

I had in mind a bubble that's draggable around onClick left/right/up/down.

Something similar to the following

https://ecomfe.github.io/echarts-doc/public/en/tutorial.html#An%20Example:%20Implement%20Dragging

https://www.highcharts.com/products/plugin-registry/single/3/Draggable%20Points

chrispahm commented 6 years ago

Should be working with the newest release. See the bubble chart example.