Streamlit's display of an Altair chart interferes with axis labels #4269
Labels
feature:st.altair_chart
status:awaiting-user-response
Issue requires clarification from submitter
type:bug
Something isn't working
I first posted my issue here on stackoverflow. I thought it was an
altair
/vega-lite
issue. Now I believe it is astreamlit
/altair
issue. I've reproduced my analysis below.I started with this reference point: vega/altair#1576.
For which I was able to display the x-axis label like so:
I'm using
ordinal
axis formatting in Altair to display dates (in order to skip weekend dates). I'm dynamically selecting valid dates within the dataframe's index, and yet, there are values that are not displaying on the chart.It's not just these two missing values... certain dates just don't want to display (like "Jan 29, 2021", for which both prior and subsequent valid dates display fine).
Any ideas why these dates aren't showing up? Is this a datetime parsing issue? Even if I explicitly set a value (that works b/w streamlit and vega-lite) such as
"Jan 29, 2021"
, it still won't display when calling the chart through Streamlit.I cannot reproduce the error when I circumvent Streamlit, but when I chart through Streamlit, it appears Streamlit is reconfiguring the axis for display.
The text was updated successfully, but these errors were encountered: