8000 potential fix for splom · Kosm0naut/plotly.js@c477571 · GitHub
[go: up one dir, main page]

Skip to content

Commit c477571

Browse files
committed
potential fix for splom
1 parent 952262f commit c477571

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/selections/select.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -697,14 +697,14 @@ function determineSearchTraces(gd, xAxes, yAxes, subplot) {
697697

698698
if(subplot && (trace.subplot === subplot || trace.geo === subplot)) {
699699
searchTraces.push(createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]));
700-
} else if(
701-
trace.type === 'splom' &&
702-
// FIXME: make sure we don't have more than single axis for splom
703-
trace._xaxes[xAxisIds[0]] && trace._yaxes[yAxisIds[0]]
704-
) {
705-
var info = createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]);
706-
info.scene = gd._fullLayout._splomScenes[trace.uid];
707-
searchTraces.push(info);
700+
} else if(trace.type === 'splom') {
701+
for(var j = 0; j < xAxisIds.length; j++) {
702+
for(var k = 0; k < yAxisIds.length; k++) {
703+
var info = createSearchInfo(trace._module, cd, xAxes[j], yAxes[k]);
704+
info.scene = gd._fullLayout._splomScenes[trace.uid];
705+
searchTraces.push(info);
706+
}
707+
}
708708
} else if(
709709
trace.type === 'sankey'
710710
) {

0 commit comments

Comments
 (0)
0