If you pass a continuous color scale to a swatches legend, it’s unlikely to do what you expect: <img width="207" alt="Screen Shot 2022-04-13 at 11 27 43 AM" src="https://user-images.githubusercontent.com/230541/163246233-2867b197-68d8-4476-9c7c-6de1086bde1a.png"> ```js Plot.legend({ legend: "swatches", color: { type: "linear" } }) ``` You probably want to use a _quantize_ scale instead: <img width="353" alt="Screen Shot 2022-04-13 at 11 28 44 AM" src="https://user-images.githubusercontent.com/230541/163246365-3e0cbd0b-b6ab-4f56-a6bf-58728782b653.png"> ```js Plot.legend({ color: { type: "quantize", scheme: "turbo" } }) ``` So, should we throw an error if you pass a continuous scale to a swatches legend? Ref. https://github.com/observablehq/plot/discussions/827