Skip to content

Commit 7b51730

Browse files
committed
fix: cwv perf tooltip
1 parent 4717beb commit 7b51730

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/oversight/charts/cwvperf.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export default class CWVPerfChart extends AbstractChart {
124124
color: 'white',
125125
},
126126
tooltip: {
127+
intersect: false,
127128
callbacks: {
128129
label: (context) => {
129130
const value = context.parsed.y;
@@ -143,7 +144,8 @@ export default class CWVPerfChart extends AbstractChart {
143144
},
144145
},
145146
interaction: {
146-
mode: 'x',
147+
mode: 'nearest',
148+
axis: 'x',
147149
},
148150
animation: {
149151
duration: 300,

0 commit comments

Comments
 (0)