-
Notifications
You must be signed in to change notification settings - Fork 286
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
Log scales may generate no ticks for small domains. #44
Comments
(Of course in this case the log scale is essentially equivalent to a linear scale, but it’d be nice if the log scale still did the right thing.) |
This issue is still present in 5.7.2: |
This issue is still present in 5.16.0: |
It was fixed in d3-scale@3 which is not yet part of the D3 bundle. Will ship with d3@6. In the meantime you could try require("d3-scale@3") |
@Fil |
If the difference between the smallest and largest values in the domain is small relative to their absolute value, then log.ticks can return the empty array. For example:
In this case, it’d probably be best for the log scale to fallback to the behavior of a standard linear scale. Although, it’s probably appropriate to continue to use an exponential tick format?
The text was updated successfully, but these errors were encountered: