plot
plot copied to clipboard
A concise API for exploratory data visualization implementing a layered grammar of graphics
We currently support field (named properties specified as strings) as channel value shorthand, e.g., `y: "foo"` is upgraded to `y: d => d["foo"]` or equivalently `y: data.map(d => d["foo"])`. For...
A debugging routine, e.g., ```js function Plot_initialize(data, {transform, ...channels} = {}) { data = arrayify(data); let index = data == null ? undefined : Uint32Array.from(data, (d, i) => i); if...
It’d be nice to have a way to specify a color gradient, presumably spanning the chart area in either x or y, with some given color stops.
Add tests for the normalize transform closes #473
 the axis should show 1, 2, instead of 1.0, 1.5, 2.0
And in particular, the API of the Mark class, which is currently undocumented.
Fixes #510. TODO: - [ ] I’m getting a little confused as to whether *label* and *labelArrow* are options on scales or axes. For the most part, we only need...
For single-instance marks, it’d be neat if you could just pass *options* without data. For example: ```js Plot.text({ text: "Hello, world!" x: new Date("2016-05-01"), y: 100, dx: -10, dy: 40,...
Per https://github.com/observablehq/plot/pull/75#issuecomment-751497435 we want to hide the axis if it has much too many ticks.