An option you need to set is format
using a d3-format code:
alt.Chart(df).mark_area().encode(
x=alt.X("date:T"),
y=alt.Y("time:Q", axis=alt.Axis(tickCount=10, format=".1e"),
color="type"
)
The number before e
in ".1e"
describes the number of digits to show:
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.