-
I have categorical names that don't make as much sense alphabetically. Would be nice to give facet a sort function instead of the default. |
Beta Was this translation helpful? Give feedback.
Answered by
mbostock
Mar 16, 2023
Replies: 1 comment
-
You can specify the domain of the fx or fy scale explicitly to change the order. And you can use the mark sort option to impute the domain of these scales from data. See the barley plot example here: https://observablehq.com/@observablehq/plot-facets |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Fil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can specify the domain of the fx or fy scale explicitly to change the order. And you can use the mark sort option to impute the domain of these scales from data. See the barley plot example here: https://observablehq.com/@observablehq/plot-facets