Skip to content

Commit 9d72d44

Browse files
committed
skip over legendonly traces in scatter select routine
1 parent 945325f commit 9d72d44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/traces/scatter/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ module.exports = function selectPoints(searchInfo, polygon) {
2727
y;
2828

2929
// TODO: include lines? that would require per-segment line properties
30-
if(!subtypes.hasMarkers(trace) && ! subtypes.hasText(trace)) return;
30+
var hasOnlyLines = (subtypes.hasMarkers(trace) && subtypes.hasText(trace));
31+
if(trace.visible !== true || hasOnlyLines) return;
3132

3233
var opacity = Array.isArray(marker.opacity) ? 1 : marker.opacity;
3334

0 commit comments

Comments
 (0)