-
Notifications
You must be signed in to change notification settings - Fork 31
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
Should auto-calculated ordinal domain return sorted? #147
Comments
Yea I think this would be a good idea. |
Implemented in 8.0.0 |
I'm re-opening this since some people have found this behavior surprising. Maybe better to turn this off by default. Any thoughts welcome |
@techniq @rgieseke @jtrim-ons any preference on this one? |
I personally find it surprising, and while |
I have no strong preference here, thanks for the heads-up! |
Currently, if you set an accessor for x y or z and you pass in an ordinal scale, the domain will be calculated as unique elements, say, for a color scale. The order of these unique elements is just based on when they appear in the data. Should
.sort()
be called on them so that the appearance is more consistent?This could be a potential breaking change for some charts.
The text was updated successfully, but these errors were encountered: