@@ -139,53 +139,6 @@ describe('calculated data and points', function() {
139
139
} ) ;
140
140
} ) ;
141
141
142
- /*
143
- describe('codomain numerical category ordering', function() {
144
-
145
- it('should output categories in ascending codomain numerical order', function() {
146
-
147
- Plotly.plot(gd, [{x: ['c','a','e','b','d'], y: [15,11,12,13,14]}], { xaxis: {
148
- type: 'category',
149
- categorymode: 'value ascending'
150
- }});
151
-
152
- expect(gd.calcdata[0][0].y).toEqual(11);
153
- expect(gd.calcdata[0][1].y).toEqual(12);
154
- expect(gd.calcdata[0][2].y).toEqual(13);
155
- expect(gd.calcdata[0][3].y).toEqual(14);
156
- expect(gd.calcdata[0][4].y).toEqual(15);
157
- });
158
-
159
- it('should output categories in descending codomain numerical order', function() {
160
-
161
- Plotly.plot(gd, [{x: ['c','a','e','b','d'], y: [15,11,12,13,14]}], { xaxis: {
162
- type: 'category',
163
- categorymode: 'value descending'
164
- }});
165
-
166
- expect(gd.calcdata[0][0].y).toEqual(15);
167
- expect(gd.calcdata[0][1].y).toEqual(14);
168
- expect(gd.calcdata[0][2].y).toEqual(13);
169
- expect(gd.calcdata[0][3].y).toEqual(12);
170
- expect(gd.calcdata[0][4].y).toEqual(11);
171
- });
172
-
173
- it('should output categories in descending codomain numerical order, excluding nulls', function() {
174
-
175
- Plotly.plot(gd, [{x: ['c','a','e','b','d'], y: [15,11,null,13,14]}], { xaxis: {
176
- type: 'category',
177
- categorymode: 'value descending'
178
- }});
179
-
180
- expect(gd.calcdata[0][0].y).toEqual(15);
181
- expect(gd.calcdata[0][1].y).toEqual(14);
182
- expect(gd.calcdata[0][2].y).toEqual(12);
183
- expect(gd.calcdata[0][3].y).toEqual(11);
184
-
185
- });
186
- });
187
- */
188
-
189
142
describe ( 'explicit category ordering' , function ( ) {
190
143
191
144
it ( 'should output categories in explicitly supplied order, independent of trace order' , function ( ) {
0 commit comments