Checklist
Summary
It looks like there is an oversight in the bar_chart function. When selecting horizontal mode, the X and Y labels do not flip places to align with the flipped dataset.
Reproducible Code Example
st.bar_chart(
data=result,
x="GENRE",
x_label="movie genre",
y="AVG",
y_label="avarage rating",
horizontal=True,
)
Steps To Reproduce
Render any bar_chart using both the axis label parameters and in horizontal mode.
Expected Behavior
After selecting, horizontal=True, which flips the x and y axes of the chart, I expect the x_label to be printed along the vertical axis and y_label to be printed on the horizontal axis.
Current Behavior
Instead, x_label remains printed on the horizontal axis and y_label along the vertical axis. This means that x_label and x are no longer represented on the same axis.
Is this a regression?
Debug info
- Streamlit version: snowflake-current
- Python version: snowflake-current
- Operating System: MacOS 26.4.1
- Browser: Firefox
Additional Information
https://snowflakecomputing.atlassian.net/browse/SNOW-3373985
Checklist
Summary
It looks like there is an oversight in the
bar_chartfunction. When selecting horizontal mode, the X and Y labels do not flip places to align with the flipped dataset.Reproducible Code Example
Steps To Reproduce
Render any bar_chart using both the axis label parameters and in horizontal mode.
Expected Behavior
After selecting,
horizontal=True, which flips thexandyaxes of the chart, I expect thex_labelto be printed along the vertical axis andy_labelto be printed on the horizontal axis.Current Behavior
Instead,
x_labelremains printed on the horizontal axis andy_labelalong the vertical axis. This means thatx_labelandxare no longer represented on the same axis.Is this a regression?
Debug info
Additional Information
https://snowflakecomputing.atlassian.net/browse/SNOW-3373985