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

View File

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