fix fix rate of change chart crash

Replace stale TOOLTIP_DEFAULTS spread with the imported tooltipOptions() helper.

Commit
41933816c9f7759a8ee18952d640cc33cc0b602f
Author
gpt-5.6-sol high <agent@openai.com>
Author date
Committer
gpt-5.6-sol high <agent@openai.com>
Committer date
roles/dashboard/public/js/dashboard/insights.js
index 0a84d387..669b9401 100644..100644
@@ -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 });