@@ -1007,7 +1007,7 @@ describe('calculated data and points', function() {
1007
1007
} ) ;
1008
1008
} ) ;
1009
1009
1010
- it ( 'sum values across traces of type ' + trace . type , function ( done ) {
1010
+ it ( 'sums values across traces of type ' + trace . type , function ( done ) {
1011
1011
var type = trace . type ;
1012
1012
var data = [ 7 , 2 , 3 ] ;
1013
1013
var data2 = [ 5 , 4 , 2 ] ;
@@ -1064,7 +1064,7 @@ describe('calculated data and points', function() {
1064
1064
checkAggregatedValue ( baseMock , expectedAgg , false , done ) ;
1065
1065
} ) ;
1066
1066
1067
- it ( 'take the mean of all values per category across traces of type ' + trace . type , function ( done ) {
1067
+ it ( 'takes the mean of all values per category across traces of type ' + trace . type , function ( done ) {
1068
1068
var type = trace . type ;
1069
1069
var data = [ 7 , 2 , 3 ] ;
1070
1070
var data2 = [ 5 , 4 , 2 ] ;
@@ -1080,7 +1080,7 @@ describe('calculated data and points', function() {
1080
1080
checkAggregatedValue ( baseMock , expectedAgg , false , done ) ;
1081
1081
} ) ;
1082
1082
1083
- it ( 'take the median of all values per category across traces of type ' + trace . type , function ( done ) {
1083
+ it ( 'takes the median of all values per category across traces of type ' + trace . type , function ( done ) {
1084
1084
var type = trace . type ;
1085
1085
var data = [ 7 , 2 , 3 ] ;
1086
1086
var data2 = [ 5 , 4 , 2 ] ;
@@ -1096,6 +1096,27 @@ describe('calculated data and points', function() {
1096
1096
} ) ;
1097
1097
} ) ;
1098
1098
} ) ;
1099
+
1100
+ it ( 'works on asymmetric splom' , function ( done ) {
1101
+ var mock = require ( '@mocks/splom_multi-axis-type' ) ;
1102
+ var mockCopy = Lib . extendDeep ( mock , { } ) ;
1103
+
1104
+ var order = [ 'donald' , 'georgeW' , 'bill' , 'ronald' , 'richard' , 'jimmy' , 'george' , 'barack' , 'gerald' , 'lyndon' ] ;
1105
+
1106
+ Plotly . newPlot ( gd , mockCopy )
1107
+ . then ( function ( ) {
1108
+ return Plotly . relayout ( gd , 'yaxis5.categoryorder' , 'total descending' ) ;
1109
+ } )
1110
+ . then ( function ( ) {
1111
+ expect ( gd . _fullLayout . yaxis5 . _categories ) . toEqual ( order , 'wrong order' ) ;
1112
+ return Plotly . relayout ( gd , 'yaxis5.categoryorder' , 'total ascending' ) ;
1113
+ } )
1114
+ . then ( function ( ) {
1115
+ expect ( gd . _fullLayout . yaxis5 . _categories ) . toEqual ( order . reverse ( ) , 'wrong order' ) ;
1116
+ } )
1117
+ . catch ( failTest )
1118
+ . then ( done ) ;
1119
+ } ) ;
1099
1120
} ) ;
1100
1121
} ) ;
1101
1122
0 commit comments