-
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
Linear scale with one value generates no tick. #113
Comments
Fixed in d3-array@1.2.1. Thanks for the report! |
cc: @jheer |
The fix in d3-array 1.2.1 does indeed add tick marks for singular domains. Thanks! The report above also included a request for having singular domain values map to the middle of the scale range rather than the start of the range. Is there interest in supporting this aspect as well, or should we assume that the D3 scale convention will not change? Thanks again. |
Can you file a separate issue? I think that’s doable but it is a bigger change. |
Filed as #117. |
This separate issue will be fixed in #156 d3-scale 2.2. |
produces
as a result, an axis from this scale would have no tick, which would be quite confusing for users
It might be better to generate a single tick and place items at the midpoint of the range rather than the minimum point just like what Tableau does:
The text was updated successfully, but these errors were encountered: