@@ -48,7 +48,7 @@ describe('Indicator defaults', function() {
48
48
49
49
it ( 'defaults to displaying relative changes in percentage' , function ( ) {
50
50
var out = _supply ( { type : 'indicator' , mode : 'delta' , delta : { relative : true } , value : 1 } ) ;
51
- expect ( out . delta . valueformat ) . toBe ( '2 %' ) ;
51
+ expect ( out . delta . valueformat ) . toBe ( '.0 %' ) ;
52
52
} ) ;
53
53
54
54
it ( 'should not ignore empty valueformat' , function ( ) {
@@ -164,7 +164,7 @@ describe('Indicator plot', function() {
164
164
Plotly . newPlot ( gd , [ {
165
165
type : 'indicator' ,
166
166
value : 500 ,
167
- number : { valueformat : '0. f' }
167
+ number : { valueformat : '~ f' }
168
168
} ] , { width : 400 , height : 400 } )
169
169
. then ( function ( ) {
170
170
checkNumbersScale ( 1 , 'initialy at normal scale' ) ;
@@ -185,7 +185,7 @@ describe('Indicator plot', function() {
185
185
Plotly . newPlot ( gd , [ {
186
186
type : 'indicator' ,
187
187
value : 1 ,
188
- number : { valueformat : '0. f' }
188
+ number : { valueformat : '~ f' }
189
189
} ] , { width : 400 , height : 400 } )
190
190
. then ( function ( ) {
191
191
checkNumbersScale ( 1 , 'initialy at normal scale' ) ;
@@ -208,7 +208,7 @@ describe('Indicator plot', function() {
208
208
type : 'indicator' ,
209
209
mode : 'number+delta' ,
210
210
value : 1 ,
211
- number : { valueformat : '0. f' }
211
+ number : { valueformat : '~ f' }
212
212
} ;
213
213
figure [ numberType ] = { font : { size : 100 } } ;
214
214
Plotly . newPlot ( gd , [ figure ] , { width : 400 , height : 400 } )
0 commit comments