d3 / d3-axis

Human-readable reference marks for scales.

Home Page:https://d3js.org/d3-axis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

d3-axis does not update SVG attributes when switching between axis orientations

lgdevlop opened this issue · comments

We need to update some attributes when changing between axis orientations so the line and text scale do not overlap.

Link to reproduce this behavior.

https://codesandbox.io/s/proud-wave-q468bd

This is expressly disallowed in the README:

The orientation of an axis is fixed; to change the orientation, remove the old axis and create a new axis.

Good to know; thanks!
I'm closing this issue.

Thanks. I appreciate the contribution nonetheless. It’s a reasonable feature request but for now I’d just prefer to keep the code simple! 🙏