Mike Bostock
Mike Bostock
We might also want a warning for line and area marks when a channel is temporal but not in monotonic order (within a series). But you’ll presumably want a way...
@mkfreeman Here’s an example of the pattern you describe:  ```js Plot.barY([[1, 1], [2, 2], [3, 3]], {x: "0", y: "1"}).plot() ``` The warning would be triggered by `values.some(isNumeric)`...
> perhaps we could provide a warning if the channel is numeric and it was explicitly declared Generally speaking we try to do the opposite, which is to declare warnings...
Fil, you might want to start developing additional functionality (e.g., timing parameters and programmatic control) in a separate PR so that we can focus on reviewing the core code here....
Swatches legends do not currently support a label option, but it’s noted as a TODO here: https://github.com/observablehq/plot/blob/3f8ac1369b9838e0f0036a6fe19aed6e841af0fb/src/legends/swatches.js#L77
Possible approach, but I’m unsure how to generalize… ```js export function text(data, options = {}) { if (arguments.length === 1 && Object.getPrototypeOf(data) === Object.prototype) { const {x, y, text, ...rest}...
Datawrapper does this well (see multi-line axis ticks): https://blog.datawrapper.de/new-axis-ticks/
I think supporting \n is probably the way to go, yeah. I don’t understand how \n? works in your example above. How does it know not to render the year...
Ah, I see! Neat. I like that. The repetition rule applies to each line distinctly, then (not to % fields)?
Related #393, when the ticks represent a (time) interval, it’d be nice if the tick label were aligned to the start of the interval, rather than centered around the interval....