Search⌘ K
AI Features

Scales

Explore how to apply scales in Altair to convert data values into visual elements. Understand setting the domain and range parameters to create clear, informative visualizations like bar charts with controlled axes.

Scales map data values to visual properties. In Altair, we can determine the scale of an encoding channel by passing the scale parameter to it.

How to use scales in Altair

To scale a specific encoding channel, set the scale parameter as follows. ...