compwright / chartjs-plugin-draggable

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

Vertical Lines & Boxes with non-linear axes #1

Open sifex opened 7 years ago

sifex commented 7 years ago

Hey @compwright, have you tested this against vertical lines across the x-axis? I seem to be able to get it working on scaleID: 'y-axis-0', but not scaleID: 'x-axis-0',

kapture 2017-01-18 at 11 30 07

compwright commented 7 years ago

It works with a linear scale, other scale types are not yet supported. Any PRs to rectify this are welcome!

sifex commented 7 years ago

@compwright This seems to be a linear axis. The drag is just being transformed from the y-axis to the x-axis

compwright commented 7 years ago

It looks like a time axis to me. Can you post a jsfiddle or codepen reproducing the issue?