You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For large powers of ten, tick labels are often truncated by default:
It’d be nice if we could detect this sort of powers-of-ten ticks and automatically applied a suitable scale transform, such as converting to billions (y: {transform: d => d / 1e9}):
The text was updated successfully, but these errors were encountered:
mbostock
changed the title
Detect thousands/millions/billions/etc. and automatically transform for shorter tick labels.
Automatically transform to thousands etc. for shorter tick labels.
May 12, 2021
We’d add (millions) to the end of the scale label. Which wouldn’t look great if there was already a parenthetical, but it’s fine because you can always customize the label yourself.
For large powers of ten, tick labels are often truncated by default:
It’d be nice if we could detect this sort of powers-of-ten ticks and automatically applied a suitable scale transform, such as converting to billions (
y: {transform: d => d / 1e9}
):The text was updated successfully, but these errors were encountered: