-
-
Notifications
You must be signed in to change notification settings - Fork 38
Bar charts sort labels alphabetically instead of respecting their order #93
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
Comments
Here's why: Lines 32 to 40 in d59d01f
It's because of |
I am finding it remarkably difficult to figure out how to get Vega-Lite bar charts to respect the initial order (I remember having this same problem with |
@simonw I do not know if it's ok for you. have you tried with |
That's not quite what I'm after here - I want to sort in the order originally provided by the results of the query. So if the data looked like this: {
"values": [
{"a": "Dog", "b": 28},
{"a": "Cat", "b": 55},
{"a": "Chicken", "b": 43},
{"a": "Dragon", "b": 91}
]
} I want the bars on the bar chart to be in |
Aha! It looks like |
https://simonwillison.net/dashboard/bar-chart-for-issue-93/ before this fix: After the fix: |
I can fix simonw/datasette-vega#19 with this too. |
Pointed out here: https://twitter.com/zellyn/status/1391786830333464579
The text was updated successfully, but these errors were encountered: