I would like to format the axis in the following plot such that it shows dollar cents instead of fractional dollars.
data = pd.DataFrame({
'x': np.random.rand(20)
})
alt.Chart(data).mark_tick().encode(
alt.X('x', axis=alt.Axis(format='$.2f'))
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.