グラフでカーソルに近い位置のツールチップを表示する

This commit is contained in:
eai04191 2020-02-03 01:12:52 +09:00
parent 7968019e1c
commit e7e4195a10
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,
}
}
});