observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.16k stars 171 forks source link

tip ignores literal colors #2091

Closed mbostock closed 1 month ago

mbostock commented 1 month ago

Fixes #2090. Uses a new channel.defaultScale field to record what the channel.scale would have been, if it weren’t for the specific values provided. This allows the tip mark to detect when a channel would have been associated with the color scale, but isn’t, and hence contains only literal color values that should not be shown (at least by default) in the tip.

Screenshot 2024-06-14 at 6 08 37 PM