@@ -961,6 +961,9 @@ function createHoverText(hoverData, opts) {
961
961
var fontWeight = opts . fontWeight || fullLayout . font . weight ;
962
962
var fontStyle = opts . fontStyle || fullLayout . font . style ;
963
963
var fontVariant = opts . fontVariant || fullLayout . font . variant ;
964
+ var fontTextcase = opts . fontTextcase || fullLayout . font . textcase ;
965
+ var fontLineposition = opts . fontLineposition || fullLayout . font . lineposition ;
966
+ var fontShadow = opts . fontShadow || fullLayout . font . shadow ;
964
967
965
968
var c0 = hoverData [ 0 ] ;
966
969
var xa = c0 . xa ;
@@ -1041,13 +1044,17 @@ function createHoverText(hoverData, opts) {
1041
1044
var commonBgColor = commonLabelOpts . bgcolor || Color . defaultLine ;
1042
1045
var commonStroke = commonLabelOpts . bordercolor || Color . contrast ( commonBgColor ) ;
1043
1046
var contrastColor = Color . contrast ( commonBgColor ) ;
1047
+ var commonLabelOptsFont = commonLabelOpts . font ;
1044
1048
var commonLabelFont = {
1045
- weight : commonLabelOpts . font . weight || fontWeight ,
1046
- style : commonLabelOpts . font . style || fontStyle ,
1047
- variant : commonLabelOpts . font . variant || fontVariant ,
1048
- family : commonLabelOpts . font . family || fontFamily ,
1049
- size : commonLabelOpts . font . size || fontSize ,
1050
- color : commonLabelOpts . font . color || contrastColor
1049
+ weight : commonLabelOptsFont . weight || fontWeight ,
1050
+ style : commonLabelOptsFont . style || fontStyle ,
1051
+ variant : commonLabelOptsFont . variant || fontVariant ,
1052
+ textcase : commonLabelOptsFont . textcase || fontTextcase ,
1053
+ lineposition : commonLabelOptsFont . lineposition || fontLineposition ,
1054
+ shadow : commonLabelOptsFont . shadow || fontShadow ,
1055
+ family : commonLabelOptsFont . family || fontFamily ,
1056
+ size : commonLabelOptsFont . size || fontSize ,
1057
+ color : commonLabelOptsFont . color || contrastColor
1051
1058
} ;
1052
1059
1053
1060
lpath . style ( {
@@ -1370,6 +1377,9 @@ function createHoverText(hoverData, opts) {
1370
1377
weight : fontWeight ,
1371
1378
style : fontStyle ,
1372
1379
variant : fontVariant ,
1380
+ textcase : fontTextcase ,
1381
+ lineposition : fontLineposition ,
1382
+ shadow : fontShadow ,
1373
1383
family : fontFamily ,
1374
1384
size : fontSize
1375
1385
} ) ;
@@ -1413,7 +1423,10 @@ function createHoverText(hoverData, opts) {
1413
1423
color : d . fontColor || contrastColor ,
1414
1424
weight : d . fontWeight || fontWeight ,
1415
1425
style : d . fontStyle || fontStyle ,
1416
- variant : d . fontVariant || fontVariant
1426
+ variant : d . fontVariant || fontVariant ,
1427
+ textcase : d . fontTextcase || fontTextcase ,
1428
+ lineposition : d . fontLineposition || fontLineposition ,
1429
+ shadow : d . fontShadow || fontShadow ,
1417
1430
} )
1418
1431
. text ( text )
1419
1432
. attr ( 'data-notex' , 1 )
@@ -1432,7 +1445,10 @@ function createHoverText(hoverData, opts) {
1432
1445
color : nameColor ,
1433
1446
weight : d . fontWeight || fontWeight ,
1434
1447
style : d . fontStyle || fontStyle ,
1435
- variant : d . fontVariant || fontVariant
1448
+ variant : d . fontVariant || fontVariant ,
1449
+ textcase : d . fontTextcase || fontTextcase ,
1450
+ lineposition : d . fontLineposition || fontLineposition ,
1451
+ shadow : d . fontShadow || fontShadow ,
1436
1452
} ) . text ( name )
1437
1453
. attr ( 'data-notex' , 1 )
1438
1454
. call ( svgTextUtils . positionText , 0 , 0 )
0 commit comments