Closed
Description
Fast follows from #1238:
Bugs
- Auto mark: no display with non-zero reducer and bar mark #1340
- The auto mark should not default to bars when the reduce is not sum or count (e.g., don’t stack means) #1272
Robustness — aspiring to produce good plots for any combination of options
- Assigning ordinal dimension to size results in an empty Plot. We should handle this as a "very filtered data" warning, plus propagating warnings more clearly to the frontend.
- Handle high-cardinality ordinal domains better, e.g. with limit and sort plus an "Other" category so we don't silently truncate.
- A transform to consolidate ordinal values outside the top n into an “other” category, perhaps in conjunction with the group transform. #144
- https://observablehq.com/d/68e4c3583be08872
- Also think about high-cardinality ordinal color swatches
- Handle non-ordinal facets better
- Detect 1:1 domains suitable for bars https://observablehq.com/@tophtucker/plot-auto-bijection-test
- Warn or error if non-count reducer is set without a field (very common in user testing)
Options — making more configuration possible
- Pass through other channel options, e.g. thresholds for binning
- Pass through other mark options, e.g. strokeWidth Auto mark passes through other options to mark #1261
- How to specify z for multi-series line or area marks?
Other enhancements
- Shorthand for arrays of primitives (e.g.,
Plot.auto(numbers).plot()
gives a histogram) - Better default (non-error) state when no options are given (e.g.,
Plot.auto(aapl).plot()
) - Eject to explicit marks Sketch: compile auto mark to explicit marks #1373
- Auto mark: add more override-only mark types? #1422
Docs
- Document the zero option only default to bar for x or y is zeroed #1273 (review)