plot
plot copied to clipboard
A concise API for exploratory data visualization implementing a layered grammar of graphics
treemap
Fixes #1710. Quick sketch of a treemap mark and transform. TODO - [x] treemap layout - [x] value option - [x] tiling method option - [ ] labels - [...
Controlling this event is necessary because (internally) we only want to process it once, even when it's tied to several marks. This typically happens on the crosshair mark which uses...
Fixes #2331. Breaks a bunch of tests, of course. And should probably only apply to positional scales, not to (_e.g._) color? And having an implicit rule would also be nice....
This can help “ground” line charts when their minimum is somewhere between 0% and 7% of the maximum: For example, on this multi-line chart it would be nice to include...
Defaults y to the reducer when creating a dense interval. There is a discrepancy between line and area, where the default y = identity is set: ```js export function lineY(data,...
If a plot specifies an inset as well as axis marks, then the resulting height causes y labels to overlap if the data only produces two bands: ```js Plot.plot({ inset:...
I expect this to work:  ```js Plot.areaY(data, {x: "date", reduce: "count", interval: "day"}).plot() ``` After all, it works for a line:  ```js Plot.lineY(data, {x: "date", reduce: "count", interval:...
E.g., the **transform** option is ignored here: ```js Plot.scale({ color: { domain: d3.range(9), range: scheme, transform: ([a, b]) => 3 * a + b, unknown: "#ccc" } }) ``` This...
closes #2321 demo: https://observablehq.com/@observablehq/long-tips-2322
Currently, textOverflow is ignored in tips that use key/value pairs formatting. (It's appied only in the case where the tip is specified with the title channel). ```js Plot.tip( [ {...