I am trying to encode percentage with a color scale on a choropleth map. How can I format the scale to show percent values (ex. 10%) rather than fraction values (ex. 0.1)? I know for a regular X or Y axis you could do axis=alt.Axis(format='.0%'), but I can't see how to use formatting for this color scale.
import altair as alt
import pandas as pd
from vega_datasets import data
alt.renderers.enable('notebook')
airports = pd.read_csv(data.airports.url)
airports = airports.groupby('state').agg({'iata': 'count'})
airports['id'] = range(1, len(airports) + 1)
airports['pct'] = airports['iata'] / airports['iata'].sum()
states = alt.topo_feature(data.us_10m.url, feature='states')
alt.Chart(states).mark_geoshape().encode(
color='pct:Q'
).transform_lookup(
lookup='id',
from_=alt.LookupData(airports, 'id', ['pct'])
).project('albersUsa')

