Open
Description
If the date axis is not named one of the special names we suppress, the axis label may collide with the tick labels. (I see why this happens and auto margins are very tricky but I wanted an issue to track this.)
Plot.plot({
marks: [
Plot.rectY(pizza, Plot.binX({ y: "count" }, { x: "order_date", tip: true })),
Plot.ruleY([0])
]
})
Activity
Fil commentedon Sep 13, 2023
Wouldn't you want to leave the margin as is, and remove 2023?
tophtucker commentedon Sep 13, 2023
In this specific case, I’d really probably just want to remove the label “order_date”. But I can imagine wanting a label on a date axis and wanting it to adjust automatically if it’s multi-line. Though I know it may not be easy to infer if it’s multi-line! So maybe this is more similar to #383.
auto-margin top and bottom (closes #1859)
auto-margin top and bottom (closes #1859)
auto-margin top and bottom (closes #1859)