From 7b51730c4b4c4db76699083c7daf24b90743d016 Mon Sep 17 00:00:00 2001 From: kptdobe Date: Thu, 16 Jan 2025 14:33:12 +0100 Subject: [PATCH] fix: cwv perf tooltip --- tools/oversight/charts/cwvperf.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/oversight/charts/cwvperf.js b/tools/oversight/charts/cwvperf.js index 6f2da0ea..3c886f87 100644 --- a/tools/oversight/charts/cwvperf.js +++ b/tools/oversight/charts/cwvperf.js @@ -124,6 +124,7 @@ export default class CWVPerfChart extends AbstractChart { color: 'white', }, tooltip: { + intersect: false, callbacks: { label: (context) => { const value = context.parsed.y; @@ -143,7 +144,8 @@ export default class CWVPerfChart extends AbstractChart { }, }, interaction: { - mode: 'x', + mode: 'nearest', + axis: 'x', }, animation: { duration: 300,