observablehq / observablehq/plot
Facet wrapping
Open
@Fil is already working on this.
Since Mar 27, 2021.
enhancement
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
We can create a grid facet with:
x: d => (f(d) % 5),
y: d => Math.floor(f(d) / 5)
where f returns an integer, maybe d => groups.indexOf(d.group).
Can we make it easier to compute the gridded facet, and to draw its mark)? (In this case we can't use fx/fy for the facet ticks, and also need a way to draw the facet's tick inside or below the frame at a fixed point.)
Examples:
https://observablehq.com/d/61ca1967e419b882

https://observablehq.com/@data-workflows/geofacet & https://github.com/observablehq/plot/pull/101
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.