Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use 1.2 X hoverlable.font for title in unified hover
  • Loading branch information
archmoj committed Aug 17, 2021
commit 259c38d45e67e57ff61ad43e817366ad83018c03
7 changes: 6 additions & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,12 @@ function createHoverText(hoverData, opts, gd) {
var mockLayoutIn = {
showlegend: true,
legend: {
title: {text: t0, font: hoverlabel.font},
title: {
text: t0,
font: Lib.extendFlat({}, hoverlabel.font, {
size: Math.round(hoverlabel.font.size * 1.2) // larger font size
})
},
font: hoverlabel.font,
bgcolor: hoverlabel.bgcolor,
bordercolor: hoverlabel.bordercolor,
Expand Down