Merge pull request #322 from eai04191/feature/chart-nearest-fix

statsのグラフでカーソルに近い位置のツールチップを表示する
This commit is contained in:
shibafu 2020-02-11 00:20:03 +09:00 committed by GitHub
commit 267eb48589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,10 @@ function createLineGraph(id, labels, data) {
beginAtZero: true
}
}]
},
tooltips: {
mode: 'index',
intersect: false,
}
}
});
@ -60,6 +64,10 @@ function createBarGraph(id, labels, data) {
beginAtZero: true
}
}]
},
tooltips: {
mode: 'index',
intersect: false,
}
}
});