@@ -961,6 +961,9 @@ function createHoverText(hoverData, opts) {
961961 var fontWeight = opts . fontWeight || fullLayout . font . weight ;
962962 var fontStyle = opts . fontStyle || fullLayout . font . style ;
963963 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 ;
964967
965968 var c0 = hoverData [ 0 ] ;
966969 var xa = c0 . xa ;
@@ -1041,13 +1044,17 @@ function createHoverText(hoverData, opts) {
10411044 var commonBgColor = commonLabelOpts . bgcolor || Color . defaultLine ;
10421045 var commonStroke = commonLabelOpts . bordercolor || Color . contrast ( commonBgColor ) ;
10431046 var contrastColor = Color . contrast ( commonBgColor ) ;
1047+ var commonLabelOptsFont = commonLabelOpts . font ;
10441048 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
10511058 } ;
10521059
10531060 lpath . style ( {
@@ -1370,6 +1377,9 @@ function createHoverText(hoverData, opts) {
13701377 weight : fontWeight ,
13711378 style : fontStyle ,
13721379 variant : fontVariant ,
1380+ textcase : fontTextcase ,
1381+ lineposition : fontLineposition ,
1382+ shadow : fontShadow ,
13731383 family : fontFamily ,
13741384 size : fontSize
13751385 } ) ;
@@ -1413,7 +1423,10 @@ function createHoverText(hoverData, opts) {
14131423 color : d . fontColor || contrastColor ,
14141424 weight : d . fontWeight || fontWeight ,
14151425 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 ,
14171430 } )
14181431 . text ( text )
14191432 . attr ( 'data-notex' , 1 )
@@ -1432,7 +1445,10 @@ function createHoverText(hoverData, opts) {
14321445 color : nameColor ,
14331446 weight : d . fontWeight || fontWeight ,
14341447 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 ,
14361452 } ) . text ( name )
14371453 . attr ( 'data-notex' , 1 )
14381454 . call ( svgTextUtils . positionText , 0 , 0 )
0 commit comments