plot
plot copied to clipboard
A concise API for exploratory data visualization implementing a layered grammar of graphics
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)`....
As noted in https://github.com/observablehq/plot/pull/2132#issuecomment-2489891444:  ```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...
there were two issues: 1. blur2 does not support dates 2. the contour ticks should be derived as utc ticks not numerical ticks closes #2250
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,...
do with areas like we did with lines #1156 : an "auto" curve that works with projections Will be useful for #1173 #133 (and arc, pie, donut charts).
https://d3js.org/d3-geo/projection#projection_angle ```js Plot.plot({ projection: { type: ({ width, height }) => d3.geoEqualEarth().angle(11).fitSize([width, height], { type: "Sphere" }) }, marks: [Plot.graticule(), Plot.sphere()] }) ``` should be available as ```js Plot.plot({ projection:...
 As pioneered by @jwolondon, it's a sum of the density field at several harmonic bandwidths (1, 2, 4, 8, 16, 32, 64px) weighted by 1, 4, 9, 25, 36,...
 ``` Plot.dot( penguins, Plot.dodgeY({ x: "culmen_length_mm", symbol: (d) => (d.sex === "FEMALE" ? "square" : "star"), tip: true }) ).plot({ height: 220 }) ``` The [Object object] is the...