Skip to content

Commit 3d0342b

Browse files
authored
A channel of explicit symbols does not show in the tip nor has a legend (#2239)
closes #2237
1 parent 109fc72 commit 3d0342b

File tree

4 files changed

+403
-2
lines changed

4 files changed

+403
-2
lines changed

src/marks/tip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ function getSourceChannels(channels, scales) {
347347
if ((key === "x" || key === "y") && channels.geometry) continue; // ignore x & y on geo
348348
const source = getSource(channels, key);
349349
if (source) {
350-
// Ignore color channels if the values are all literal colors.
351-
if (source.scale == null && source.defaultScale === "color") continue;
350+
// Ignore (e.g., color) channels if the values are all literal.
351+
if (source.scale == null && source.defaultScale) continue;
352352
sources[key] = source;
353353
}
354354
}

0 commit comments

Comments
 (0)