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

When a color channel is specified in literal color values, it should be ignored by the tip mark #2090

Closed mbostock closed 1 month ago

mbostock commented 1 month ago

For example, the fill channel appearing in the tip here isn’t very useful:

untitled - 2024-06-14T174016 066

Plot.plot({
  grid: true,
  marks: [
    Plot.dot(penguins, {
      x: "culmen_length_mm",
      y: "culmen_depth_mm",
      fill: (d) => d.species === "Adelie" ? "red" : "black",
      tip: true
    })
  ]
})