Skip to content

Commit debdd46

Browse files
committed
swap 'id' for 'pointNumber' in scattergl selection data
- to match svg 'scatter'
1 parent ab30f93 commit debdd46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/traces/scattergl/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ proto.updateFancy = function(options) {
562562
if(selection) {
563563
selIds = {};
564564
for(i = 0; i < selection.length; i++) {
565-
selIds[selection[i].id] = true;
565+
selIds[selection[i].pointNumber] = true;
566566
}
567567
}
568568

src/traces/scattergl/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function selectPoints(searchInfo, polygon) {
4040
y = ya.c2p(di.y);
4141
if(polygon.contains([x, y])) {
4242
selection.push({
43-
id: i,
43+
pointNumber: i,
4444
x: di.x,
4545
y: di.y
4646
});

0 commit comments

Comments
 (0)