From 6b5419b657da757e09304839934ee135985e2076 Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Sat, 26 Nov 2022 02:15:10 -0800 Subject: [PATCH] Updated interact methodology Before, seeing exactly what number was on the chart required you to hover you mouse on the point exactly. Now, you can hover anywhere on the chart and it will tell you the the point closest to your mouse --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 94eff04..74d64d0 100644 --- a/src/index.js +++ b/src/index.js @@ -51,6 +51,10 @@ function populateChart() { }] }, options: { + interaction: { + intersect: false, + mode: "index" + }, scales: { x: { type: 'time',