How to sort nominal category y-axis by quantitative measure #9593
-
|
Hi, I have a encoded my nominal y-axis with sort but it refuses to sort by the quantitative measure. Sorting defaults to alphabetical. Is anyone able to suggest a solution how I can enable y-axis sort?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.

Because the source spec has the data redacted I'm not able to see the problem you encountered. However, I can share that sorting should work if you set the sort in a way that it applies to every layer.
In the sample spec, it looked like the y encoding sort was only being provided on the bar layer. If you set it for every layer, it should work. Let me know if this helps.
Editor link