Skip to content

Commit a877179

Browse files
committed
fix hover
1 parent c90f098 commit a877179

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/components/fx/hover.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,11 +1396,14 @@ function createHoverText(hoverData, opts) {
13961396

13971397
// secondary label for non-empty 'name'
13981398
if(name && name !== text) {
1399-
tx2.call(Drawing.font,
1400-
d.fontFamily || fontFamily,
1401-
d.fontSize || fontSize,
1402-
nameColor)
1403-
.text(name)
1399+
tx2.call(Drawing.font, {
1400+
family: d.fontFamily || fontFamily,
1401+
size: d.fontSize || fontSize,
1402+
color: nameColor,
1403+
weight: d.fontWeight || fontWeight,
1404+
style: d.fontStyle || fontStyle,
1405+
variant: d.fontVariant || fontVariant
1406+
}).text(name)
14041407
.attr('data-notex', 1)
14051408
.call(svgTextUtils.positionText, 0, 0)
14061409
.call(svgTextUtils.convertToTspans, gd);

0 commit comments

Comments
 (0)