File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,30 @@ describe('Test scatterpolar hover:', function() {
192
192
} ,
193
193
nums : 'r: 4.022892\nθ: 128.342°\n4.02289202968' ,
194
194
name : 'Trial 3'
195
+ } , {
196
+ desc : 'with prefix and suffix' ,
197
+ patch : function ( fig ) {
198
+ fig . layout . polar . radialaxis . tickprefix = '(' ;
199
+ fig . layout . polar . radialaxis . ticksuffix = ')' ;
200
+ fig . layout . polar . angularaxis . tickprefix = '[' ;
201
+ fig . layout . polar . angularaxis . ticksuffix = ']' ;
202
+ return fig ;
203
+ } ,
204
+ nums : 'r: (4.022892)\nθ: [128.342]' ,
205
+ name : 'Trial 3'
206
+ } , {
207
+ desc : 'with prefix and suffix on invisible axes' ,
208
+ patch : function ( fig ) {
209
+ fig . layout . polar . radialaxis . visible = false ,
210
+ fig . layout . polar . radialaxis . tickprefix = '(' ;
211
+ fig . layout . polar . radialaxis . ticksuffix = ')' ;
212
+ fig . layout . polar . angularaxis . visible = false ;
213
+ fig . layout . polar . angularaxis . tickprefix = '[' ;
214
+ fig . layout . polar . angularaxis . ticksuffix = ']' ;
215
+ return fig ;
216
+ } ,
217
+ nums : 'r: (4.022892)\nθ: [128.342]' ,
218
+ name : 'Trial 3'
195
219
} ]
196
220
. forEach ( function ( specs ) {
197
221
it ( 'should generate correct hover labels ' + specs . desc , function ( done ) {
You can’t perform that action at this time.
0 commit comments