Ordering

Learn how to order a categorical variable in Altair.

Ordering involves specifying the order of values in a categorical variable. In Altair, we can determine the order of an encoding channel by passing the sort parameter to it.

How to use ordering in Altair

To order a specific encoding channel, set the sort parameter according to ...