chartjs-plugin-crosshair icon indicating copy to clipboard operation
chartjs-plugin-crosshair copied to clipboard

Multiple lines in chart with time type

Open pirelle opened this issue 4 years ago • 1 comments

I had a bug when using plugin with multiple lines in chart and 'time' type in xAxes.

I found if I replace _index: items.length here https://github.com/AbelHeinsbroek/chartjs-plugin-crosshair/blob/1a4a2a4c32ac03d0613bf5297a75ee10b77c60c5/src/interpolate.js#L82 to _index: index it works.

pirelle avatar May 06 '20 15:05 pirelle

I'm also using it with multiple lines and 'time' axes, but I didn't see any bugs.

You can check out an example here https://codepen.io/danmana/pen/jObRWJy

danmana avatar May 25 '20 08:05 danmana