I have an Altair plot which renders with sensible ticks in Jupyter below:
However the same plot rendered with Streamlit (below) has way too many ticks. How to change this behaviour and keep the default (jupyter) behaviour?
My code:
my_chart = alt.Chart(data).mark_line().encode(
x='last_changed',
y=alt.Y('state', title=data.iloc[0]['friendly_name']),
).properties(
width=600,
height=300
).interactive()
st.altair_chart(my_chart, width=-1)