Skip to content

Commit fb44aee

Browse files
committed
fixing the non-fancy scattergl 'single data point' infinite loop
1 parent e94b1d1 commit fb44aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scattergl/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ proto.update = function(options) {
272272
// also, there are quite a few differences
273273
function allFastTypesLikely(a) {
274274
var len = a.length,
275-
inc = Math.max(0, (len - 1) / Math.min(Math.max(len, 1), 1000)),
275+
inc = Math.max(1, (len - 1) / Math.min(Math.max(len, 1), 1000)),
276276
ai;
277277

278278
for(var i = 0; i < len; i += inc) {

0 commit comments

Comments
 (0)