@@ -366,22 +366,22 @@ describe('Dimension reordered parcats trace', function() {
366
366
{ dimensionInd : 1 , displayInd : 2 , dimensionLabel : 'Two' } ) ;
367
367
368
368
checkCategoryCalc ( gd , 1 , 0 , {
369
- categoryLabel : 'A ' ,
369
+ categoryLabel : 'B ' ,
370
370
dimensionInd : 1 ,
371
371
categoryInd : 0 ,
372
- displayInd : 1 } ) ;
372
+ displayInd : 0 } ) ;
373
373
374
374
checkCategoryCalc ( gd , 1 , 1 , {
375
- categoryLabel : 'B ' ,
375
+ categoryLabel : 'A ' ,
376
376
dimensionInd : 1 ,
377
377
categoryInd : 1 ,
378
- displayInd : 2 } ) ;
378
+ displayInd : 1 } ) ;
379
379
380
380
checkCategoryCalc ( gd , 1 , 2 , {
381
381
categoryLabel : 'C' ,
382
382
dimensionInd : 1 ,
383
383
categoryInd : 2 ,
384
- displayInd : 0 } ) ;
384
+ displayInd : 2 } ) ;
385
385
386
386
// ### Dimension 2 ###
387
387
checkDimensionCalc ( gd , 2 ,
@@ -402,9 +402,6 @@ describe('Dimension reordered parcats trace', function() {
402
402
// Define bad display indexes [0, 2, 0]
403
403
mock . data [ 0 ] . dimensions [ 2 ] . displayindex = 0 ;
404
404
405
- // catDisplayInds for dimension 1 as [0, 2, 0]
406
- mock . data [ 0 ] . dimensions [ 1 ] . catDisplayInds [ 0 ] = 0 ;
407
-
408
405
Plotly . newPlot ( gd , mock )
409
406
. then ( function ( ) {
410
407
@@ -440,12 +437,12 @@ describe('Dimension reordered parcats trace', function() {
440
437
{ dimensionInd : 1 , displayInd : 1 , dimensionLabel : 'Two' } ) ;
441
438
442
439
checkCategoryCalc ( gd , 1 , 0 , {
443
- categoryLabel : 'A ' ,
440
+ categoryLabel : 'B ' ,
444
441
categoryInd : 0 ,
445
442
displayInd : 0 } ) ;
446
443
447
444
checkCategoryCalc ( gd , 1 , 1 , {
448
- categoryLabel : 'B ' ,
445
+ categoryLabel : 'A ' ,
449
446
categoryInd : 1 ,
450
447
displayInd : 1 } ) ;
451
448
@@ -737,7 +734,9 @@ describe('Drag to reordered dimensions and categories', function() {
737
734
{ 'dimensions[0].displayindex' : 0 ,
738
735
'dimensions[1].displayindex' : 2 ,
739
736
'dimensions[2].displayindex' : 1 ,
740
- 'dimensions[1].catDisplayInds' : [ [ 1 , 2 , 0 ] ] } ,
737
+ 'dimensions[1].categoryorder' : 'array' ,
738
+ 'dimensions[1].categoryarray' : [ [ 'C' , 'A' , 'B' ] ] ,
739
+ 'dimensions[1].categorylabels' : [ [ 'C' , 'A' , 'B' ] ] } ,
741
740
[ 0 ] ] ) ;
742
741
743
742
restyleCallback . calls . reset ( ) ;
0 commit comments