Merge pull request #322 from eai04191/feature/chart-nearest-fix
statsのグラフでカーソルに近い位置のツールチップを表示する
This commit is contained in:
commit
267eb48589
8
resources/assets/js/user/stats.js
vendored
8
resources/assets/js/user/stats.js
vendored
@ -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,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user