@@ -4834,14 +4834,14 @@ describe('hovermode: (x|y)unified', function() {
4834
4834
it ( 'should format differing position using *xother* `hovertemplate` and in respect to `xhoverformat`' , function ( done ) {
4835
4835
Plotly . newPlot ( gd , [ {
4836
4836
type : 'bar' ,
4837
- hovertemplate : '%{y:.1f} %{xother:.2f}' ,
4837
+ hovertemplate : '%{y:.1f}%{xother:.2f}' ,
4838
4838
x : [ 0 , 1.001 ] ,
4839
4839
y : [ 1.001 , 2.001 ]
4840
4840
} , {
4841
4841
x : [ 0 , 0.749 ] ,
4842
4842
y : [ 1.999 , 0.999 ]
4843
4843
} , {
4844
- hovertemplate : '%{y:.1f} %{xother}' ,
4844
+ hovertemplate : '%{y:.1f}%{xother}' ,
4845
4845
xhoverformat : '.1f' ,
4846
4846
x : [ 0 , 1.251 ] ,
4847
4847
y : [ 2.001 , 3.001 ]
@@ -4861,25 +4861,25 @@ describe('hovermode: (x|y)unified', function() {
4861
4861
. then ( function ( ) {
4862
4862
_hover ( gd , { xpx : 100 , ypx : 200 } ) ;
4863
4863
assertLabel ( { title : '0' , items : [
4864
- 'trace 0 : 1.0 ' ,
4864
+ 'trace 0 : 1.0' ,
4865
4865
'trace 1 : 1.999' ,
4866
- 'trace 2 : 2.0 (0.0)'
4866
+ 'trace 2 : 2.0 (0.0) '
4867
4867
] } ) ;
4868
4868
} )
4869
4869
. then ( function ( ) {
4870
4870
_hover ( gd , { xpx : 250 , ypx : 200 } ) ;
4871
4871
assertLabel ( { title : '0.749' , items : [
4872
- 'trace 0 : 2.0 (1.00)' ,
4872
+ 'trace 0 : 2.0 (1.00) ' ,
4873
4873
'trace 1 : 0.999' ,
4874
- 'trace 2 : 3.0 (1.3)'
4874
+ 'trace 2 : 3.0 (1.3) '
4875
4875
] } ) ;
4876
4876
} )
4877
4877
. then ( function ( ) {
4878
4878
_hover ( gd , { xpx : 350 , ypx : 200 } ) ;
4879
4879
assertLabel ( { title : '1.3' , items : [
4880
- 'trace 0 : 2.0 (1.00)' ,
4880
+ 'trace 0 : 2.0 (1.00) ' ,
4881
4881
'trace 1 : (0.749, 0.999)' ,
4882
- 'trace 2 : 3.0 '
4882
+ 'trace 2 : 3.0'
4883
4883
] } ) ;
4884
4884
} )
4885
4885
. then ( done , done . fail ) ;
0 commit comments