grouped bar chart - reorder axis

I want to plot a bar chart similar to the on ein this notebook except that I want to reorder the states as specified by an array for example [“NY”, “IL”, “PA”,“FL”,“CA”,“TX”] .

I tried this but it didn’t help and I am not sure what else to try. Can anyone help me sort this out?
fx: {order: [“NY”, “IL”, “PA”,“FL”,“CA”,“TX”] },

fx: {domain: ["NY", "IL", "PA","FL","CA","TX"] },

and remove the fx key from the sort mark option (though it will not change anything once the domain is set).

1 Like

Thank you so much! This worked.