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
This commit is contained in:
Emily Doherty 2022-11-26 02:15:10 -08:00
parent dbb895c32c
commit 6b5419b657

View File

@ -51,6 +51,10 @@ function populateChart() {
}]
},
options: {
interaction: {
intersect: false,
mode: "index"
},
scales: {
x: {
type: 'time',