plot icon indicating copy to clipboard operation
plot copied to clipboard

Position of the axis label with `labelAnchor: right`

Open severo opened this issue 1 year ago • 5 comments
trafficstars

Related to https://github.com/observablehq/plot/issues/375

I thought labelAnchor: right would put the label under the axis rule, not that far to the right.

OK

Capture d’écran 2024-01-12 à 12 19 51 Capture d’écran 2024-01-12 à 12 20 08

Not expected

Capture d’écran 2024-01-12 à 12 20 19

severo avatar Jan 12 '24 15:01 severo

Related: #375

Fil avatar Jan 12 '24 15:01 Fil

This is the intended behavior. It’s not great in this case, but it works well when there’s less right margin. We should retitle this issue to be something actionable; we need a proposal for an alternate approach or option.

mbostock avatar Jan 12 '24 16:01 mbostock

Ok, we can also close the issue.

severo avatar Jan 12 '24 16:01 severo

Please don't close it; we want to make this possible (easier). Maybe it's another value for the labelAnchor option (besides left, center, right); axis-right or something?

Fil avatar Jan 12 '24 17:01 Fil

Related #1414

Fil avatar Jan 12 '24 17:01 Fil