chartjs-plugin-crosshair
chartjs-plugin-crosshair copied to clipboard
Multiple lines in chart with time type
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.
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