Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implicit trim for log ticks #254

Merged
merged 1 commit into from
Sep 19, 2021
Merged

implicit trim for log ticks #254

merged 1 commit into from
Sep 19, 2021

Conversation

mbostock
Copy link
Member

Fixes #42. For log scales, we don’t want an implicit precision because each tick can be a different power; however for integer bases it is almost always desirable to trim trailing zeroes, so now it happens automatically.

@mbostock mbostock requested a review from Fil September 18, 2021 18:19
Copy link
Member

@Fil Fil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100.000000 times yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

log.tickFormat(count, specifier) doesn’t set the precision.
2 participants