Skip to content

Commit 259c38d

Browse files
committed
use 1.2 X hoverlable.font for title in unified hover
1 parent 9759b9f commit 259c38d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/fx/hover.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,12 @@ function createHoverText(hoverData, opts, gd) {
10331033
var mockLayoutIn = {
10341034
showlegend: true,
10351035
legend: {
1036-
title: {text: t0, font: hoverlabel.font},
1036+
title: {
1037+
text: t0,
1038+
font: Lib.extendFlat({}, hoverlabel.font, {
1039+
size: Math.round(hoverlabel.font.size * 1.2) // larger font size
1040+
})
1041+
},
10371042
font: hoverlabel.font,
10381043
bgcolor: hoverlabel.bgcolor,
10391044
bordercolor: hoverlabel.bordercolor,

0 commit comments

Comments
 (0)