Mike Bostock

Results 344 issues of Mike Bostock

We support ordinal color scales: ```js Plot.legend({color: {type: "ordinal", domain: d3.range(10)}}) ``` But trying to do the same with an opacity scale results in an error: ``` Error: ordinal opacity...

enhancement

Quick take on #1164. ![image](https://user-images.githubusercontent.com/230541/225375147-deb90fd1-343a-42ba-b9e4-827efaa0fbfa.png) ```js Plot.plot({ projection: { type: "orthographic", rotate: [100, -30] }, marks: [ Plot.sphere(), Plot.geo(land, {fill: "currentColor"}), Plot.ruleX(d3.range(-180, 180, 10), {stroke: "red"}), Plot.ruleY(d3.range(-80, 80, 10), {stroke:...

As noted in https://github.com/observablehq/plot/pull/2132#issuecomment-2489891444: ![untitled - 2024-11-20T172228 394](https://github.com/user-attachments/assets/49101bf9-aab8-43eb-a948-f7a8ddc35212) ```js Plot.waffleY([0.5, 2, 4], {x: null, fill: Plot.indexOf}).plot({color: {type: "categorical"}}) ``` Above, the y-scale only extends from [0, 6.5], but the waffle...

bug

This is a first cut at an alternate take to zooming, focusing on the programmatic API first rather than the interaction. This exposes a _plot_.rescale method that takes scale definitions,...