We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90f098 commit a877179Copy full SHA for a877179
src/components/fx/hover.js
@@ -1396,11 +1396,14 @@ function createHoverText(hoverData, opts) {
1396
1397
// secondary label for non-empty 'name'
1398
if(name && name !== text) {
1399
- tx2.call(Drawing.font,
1400
- d.fontFamily || fontFamily,
1401
- d.fontSize || fontSize,
1402
- nameColor)
1403
- .text(name)
+ tx2.call(Drawing.font, {
+ family: d.fontFamily || fontFamily,
+ size: d.fontSize || fontSize,
+ color: nameColor,
+ weight: d.fontWeight || fontWeight,
1404
+ style: d.fontStyle || fontStyle,
1405
+ variant: d.fontVariant || fontVariant
1406
+ }).text(name)
1407
.attr('data-notex', 1)
1408
.call(svgTextUtils.positionText, 0, 0)
1409
.call(svgTextUtils.convertToTspans, gd);
0 commit comments