traffic widget: fix missing tooltip

This commit is contained in:
Stephan de Wit 2022-09-06 09:36:11 +02:00
parent 9606957ef8
commit 96229a2e23

View File

@ -158,7 +158,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mode: 'nearest',
intersect: false,
callbacks: {
label: function(tooltipItem, data) {
label: function(context) {
return context.dataset.label + ": " + format_field(context.dataset.data[context.dataIndex].y).toString();
}
}