We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81caeeb commit 30e3997Copy full SHA for 30e3997
inst/htmlwidgets/plotly.js
@@ -268,7 +268,7 @@ HTMLWidgets.widget({
268
} else if (Array.isArray(pt.pointNumber)) {
269
obj[attrsToAttach[i]] = attr[pt.pointNumber[0]][pt.pointNumber[1]];
270
} else if (Array.isArray(pt.pointNumbers)) {
271
- obj[attrsToAttach[i]] = pt.pointNumbers.map(function(i) { return attr[i]; });
+ obj[attrsToAttach[i]] = pt.pointNumbers.map(function(idx) { return attr[idx]; });
272
}
273
274
0 commit comments