diff --git a/src/traces/scattergl/plot.js b/src/traces/scattergl/plot.js index e06679b8f44..4d5b1d80772 100644 --- a/src/traces/scattergl/plot.js +++ b/src/traces/scattergl/plot.js @@ -255,7 +255,7 @@ var exports = module.exports = function plot(gd, subplot, cdata) { var isSelectMode = selectMode(dragmode); var clickSelectEnabled = fullLayout.clickmode.indexOf('select') > -1; - for(i = 0; i < count; i++) { + for(i = 0; i < cdata.length; i++) { var cd0 = cdata[i][0]; var trace = cd0.trace; var stash = cd0.t;