We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c11c84 commit b4700caCopy full SHA for b4700ca
test/jasmine/tests/polar_test.js
@@ -1143,9 +1143,9 @@ describe('Test polar interactions:', function() {
1143
fig.layout.margin = {l: 50, t: 50, b: 50, r: 50};
1144
1145
if(s.patch) s.patch(fig);
1146
- nTraces = fig.data.reduce(function(acc, trace) {
1147
- return (trace.type === 'scatterpolargl') ? ++acc : acc;
1148
- }, 0);
+ nTraces = fig.data
+ .filter(function(trace) { return trace.type === 'scatterpolargl'; })
+ .length;
1149
1150
Plotly.newPlot(gd, fig).then(function() {
1151
scene = gd._fullLayout.polar._subplot._scene;
0 commit comments