Mike Bostock

Results 751 comments of Mike Bostock

Ah, I see, something more configurable… Interesting. Thanks for the additional context!

Sure, I like it, let’s open a PR. Is there a way to preserve the axes as absolute values (from 0 to sum(value) on both x and y) rather than...

Here is a (contrived) demonstration of what I meant: https://observablehq.com/d/0fe77f38052f53f0

Another thought here is that we could use tickRotate to default to vertical ticks on the *x*-axis when there are too many ticks.

This seems like a reasonable thing to include. I wonder if it should be called a “caption” rather than a “title”, and maybe we should use figure and figcaption to...

Exactly, I thought we might need HTML for color swatches anyway. Although I suppose it wouldn’t be the end of the world to layout the swatches manually by computing text...

I like it. I think we should use foreignObject instead of toDataURL though (even if it currently breaks downloads on Observable; we could add a fix for that to downloading...

Example workaround using map and _cumsum_: https://observablehq.com/d/cc6eeed33e366ce8 ![untitled (40)](https://user-images.githubusercontent.com/230541/173242689-cf53f9ef-6a21-4c89-84cc-98066380d7c5.png) ```js Plot.plot({ marks: [ Plot.areaY(movies, Plot.mapY("cumsum", Plot.groupX({y: "count"}, {x: "IMDB Rating"}))), Plot.ruleY([0]) ] }) ``` Ref. https://talk.observablehq.com/t/how-to-translate-vega-lite-window-transform-grammar-to-pure-vega-lite-api-code/6679/4

Fil, thanks for the work here. I would like to put this on hold to focus on animation and interaction. I am concerned that this generalization may make animation more...

Gradients on links, bars, and rects would also be lovely to indicate direction, as here: [ ](https://observablehq.com/@mbostock/inequality-in-american-cities)