-
Notifications
You must be signed in to change notification settings - Fork 4.2k
streamlit.bar_chart should not sort columns. #385
Copy link
Copy link
Closed
Labels
feature:builtin-chartsRelated to built-in chart types, e.g. `st.line_chart`Related to built-in chart types, e.g. `st.line_chart`type:enhancementRequests for feature enhancements or new featuresRequests for feature enhancements or new features
Description
Summary
streamlit.bar_chart(some_data_frame) will sort index values of some_data_frame before displaying. This prevents users from sorting by e.g. values.
Steps to reproduce
streamlit.bar_chart(some_data_frame) with a DataFrame that isn't sorted by columns.
Expected behavior:
Streamlit to maintain sort order.
Actual behavior:
Streamlit sorts by column.
Is this a regression?
No
Debug info
- Streamlit version: Streamlit, version 0.47.4
- Python version: Python 3.7.4
- PyEnv
Related:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature:builtin-chartsRelated to built-in chart types, e.g. `st.line_chart`Related to built-in chart types, e.g. `st.line_chart`type:enhancementRequests for feature enhancements or new featuresRequests for feature enhancements or new features