Skip to content

Commit

Permalink
A channel of explicit symbols does not show in the tip nor has a legend
Browse files Browse the repository at this point in the history
closes #2237
  • Loading branch information
Fil committed Nov 19, 2024
1 parent ff7d83c commit d514313
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/marks/tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ function getSourceChannels(channels, scales) {
if ((key === "x" || key === "y") && channels.geometry) continue; // ignore x & y on geo
const source = getSource(channels, key);
if (source) {
// Ignore color channels if the values are all literal colors.
if (source.scale == null && source.defaultScale === "color") continue;
// Ignore color/symbol channels if the values are all literal colors/symbols.
if (source.scale == null && ["color", "symbol"].includes(source.defaultScale)) continue;
sources[key] = source;
}
}
Expand Down
Loading

0 comments on commit d514313

Please sign in to comment.