[Perl] DAQ system for the FAPG.
fix fix rate of change chart crash
Replace stale TOOLTIP_DEFAULTS spread with the imported tooltipOptions() helper.
roles/dashboard/public/js/dashboard/insights.js
@@ -141,13 +141,10 @@
141
141
},
142
142
plugins: {
143
143
legend: { display: true },
144
Removed:
tooltip: {
145
Removed:
...TOOLTIP_DEFAULTS,
146
Removed:
callbacks: {
147
Removed:
title: () => "",
148
Removed:
label: ctx => `${ctx.dataset.label}: ${ctx.parsed.y > 0 ? "+" : ""}${ctx.parsed.y.toFixed(2)}%/h`
149
Removed:
}
150
Removed:
}
144
Added:
tooltip: tooltipOptions({
145
Added:
title: () => "",
146
Added:
label: ctx => `${ctx.dataset.label}: ${ctx.parsed.y > 0 ? "+" : ""}${ctx.parsed.y.toFixed(2)}%/h`
147
Added:
})
151
148
}
152
149
}
153
150
});