.. This document is auto-generated by the altair-gallery extension. Do not modify directly. .. _gallery_line_percent: Line Chart with Percent axis ---------------------------- This example shows how to format the tick labels of the y-axis of a chart as percentages. .. altair-plot:: :code-below: import altair as alt from altair.expr import datum from vega_datasets import data source = data.jobs.url alt.Chart(source).mark_line().encode( alt.X('year:O'), alt.Y('perc:Q', axis=alt.Axis(format='%')), color='sex:N' ).properties( title='Percent of work-force working as Welders' ).transform_filter( datum.job == 'Welder' ) .. toctree:: :hidden: