plot
plot copied to clipboard
A concise API for exploratory data visualization implementing a layered grammar of graphics
Alternative to #985. I snuck the _axes_ state into the existing _context_ argument rather than adding yet another positional argument to _mark_.render. This allows the mark to access the _axis_.ticks...
We’ve made some progress, but it’d be nice to have an “official” recommendation of how to do this. https://observablehq.com/@observablehq/plot-marimekko https://observablehq.com/@fil/observable-plot-marimekko-fork (faceting and simplifications) Older alternatives: https://observablehq.com/@data-workflows/marimekko-chart https://observablehq.com/d/98afd8b064f98bb6 https://observablehq.com/d/7773a4b6c91df0da
An unexpected difficulty was to make it compatible with group aesthetics. I had to pass a flag (in the shape of a counter) to secondary groups. For now I just...
Related #4. Like the new brush mark, except whatever is near the pointer is considered selected. It defaults to searching in a radius around the pointer in *x* and *y*,...
Questions: - [x] name? (~~daspect,~~ dataAspectRatio, ~~height = square~~)? - [x] application to other scale types? (time, utc at least, maybe band scales too?) - [x] position? (middle/left/right/top/bottom, top-left etc)?...
see #337 and https://observablehq.com/@observablehq/plot-default-height (cheat sheet #318)
Wherever English formatting appears by default, a simple possibility of taking into account any other language could/should be proposed. E.g.: formatting of numbers or dates on the axes. Suggestion: a...
We could have a convenience constructor for rules (by assigning insets, or perhaps by exposing a length option on rules) that lets them be used to create rug plots, similar...
What if we want to change the color and font of axes?