@@ -49,7 +49,7 @@ function convertStyle(gd, trace) {
4949 if ( trace . visible !== true ) return opts ;
5050
5151 if ( subTypes . hasText ( trace ) ) {
52- opts . text = convertTextStyle ( trace ) ;
52+ opts . text = convertTextStyle ( trace , gd ) ;
5353 opts . textSel = convertTextSelection ( trace , trace . selected ) ;
5454 opts . textUnsel = convertTextSelection ( trace , trace . unselected ) ;
5555 }
@@ -102,7 +102,7 @@ function convertStyle(gd, trace) {
102102 return opts ;
103103}
104104
105- function convertTextStyle ( trace ) {
105+ function convertTextStyle ( trace , gd ) {
106106 var count = trace . _length ;
107107 var textfontIn = trace . textfont ;
108108 var textpositionIn = trace . textposition ;
@@ -115,19 +115,20 @@ function convertTextStyle(trace) {
115115
116116 var texttemplate = trace . texttemplate ;
117117 if ( texttemplate ) {
118+ var d3locale = gd . _fullLayout . _d3locale ;
118119 optsOut . text = [ ] ;
119120 var pt ;
120121 if ( Array . isArray ( texttemplate ) ) {
121122 for ( i = 0 ; i < texttemplate . length ; i ++ ) {
122123 pt = { } ;
123124 appendArrayPointValue ( pt , trace , i ) ;
124- optsOut . text . push ( Lib . texttemplateString ( texttemplate [ i ] , pt , function ( ) { } , pt ) ) ;
125+ optsOut . text . push ( Lib . texttemplateString ( texttemplate [ i ] , pt , d3locale , pt ) ) ;
125126 }
126127 } else {
127128 for ( i = 0 ; i < count ; i ++ ) {
128129 pt = { } ;
129130 appendArrayPointValue ( pt , trace , i ) ;
130- optsOut . text . push ( Lib . texttemplateString ( texttemplate , pt , function ( ) { } , pt ) ) ;
131+ optsOut . text . push ( Lib . texttemplateString ( texttemplate , pt , d3locale , pt ) ) ;
131132 }
132133 }
133134 } else {
0 commit comments