nagix / chartjs-plugin-rough

Chart.js plugin to create charts with a hand-drawn, sketchy, appearance
MIT License
87 stars 7 forks source link

Bar chart broken when using Chart.js 2.9.0+ and using tooltip #6

Open markokimpel opened 3 years ago

markokimpel commented 3 years ago

Steps to repeat:

When using Chart.js 2.9.0 (or the latest 2.9.4) a JavaScript error is thrown when hovering over a bar and the chart remains in a white-ish color.

I did some digging:

drawBody in Chart.js 2.8.0: // Draw body lines now helpers$1.each(body, function(bodyItem, i) {

drawBody in Chart.js 2.9.0: // Draw body lines now for (i = 0, ilen = body.length; i < ilen; ++i) { bodyItem = body[i];