I need my Y-axis labels to be in the '%' format. I know how to do this with local configuration:
line1 = alt.Chart(source).mark_line(
).encode(
x='Date:T',
y=alt.Y('value:Q', title="Some Title", axis=alt.Axis(format='%')),
)
line1
In the above example, the "axis=alt.Axis(format='%')" argument converts the axis to % instead of decimal.
What I need to know, however, is how to do this for the global configuration. For instance:
line1 = alt.Chart(source).mark_line(
).encode(
x='Date:T',
y=alt.Y('value:Q'),
)
line1.properties(
width=800,
height=500,
).configure_axisY(
labelFontSize=15,
titleFontSize=15,
)
Is there an attribute for .configure_axisY() that I can use to do this? I am glancing through all the options and nothing seems obvious.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…