plot
plot copied to clipboard
A concise API for exploratory data visualization implementing a layered grammar of graphics
Broken out of #1041 and https://github.com/observablehq/plot/commit/0c2fadffd17cb77a81de33b1998ec20d2afe8858. Instead of this: ```js Plot.plot({ facets: { data: penuins, x: "sex", y: "island" }, marks: [ Plot.dot(penguins, { x: "culmen_length_mm", y: "culmen_depth_mm" }) ]...
Expand all channels in parallel to the facet reindexation. ~~Alternatives: #1068, #1070.~~ TODO: - [x] create a central registry of channels, with their definitions (from [facets.js#L56](https://github.com/observablehq/plot/pull/1069/files#diff-540ac050c947f485398ca75ea672a4d4a23c59e708346f8a5dda03408b195ab7R56)) and associated scales (from...
As already discussed in #66 by @Fil I would also like to have the possibility to add an optional `id` property to marks mapping to [SVG `id`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/id). This would allow...
closes #1056 (includes #1059)
See https://observablehq.com/@observablehq/plot-band-scale-bug-1045 fixes #1045 Note: this is the least disruptive I could do; but it becomes a bit complicated to understand, as we need to compute what the default margins...
`Plot.plot({ marks: [Plot.barX([{ x: 200, y: " " }], { x: "x", y: "y" })] })` wrongly recognizes the space as a number, then warns about y being numbers.
When using Plot.cell with a small y domain and large marginTop and/or marginBottom the auto height calculations don't add to the margins as one might expect, causing a y scale...
This adds a hint that bars must include an explicit start and end so that the domain doesn't include zero when using log scales. See #1038.