Skip to content

streamlit.bar_chart should not sort columns. #385

@mishajw

Description

@mishajw

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:

Metadata

Metadata

Assignees

Labels

feature:builtin-chartsRelated to built-in chart types, e.g. `st.line_chart`type:enhancementRequests for feature enhancements or new features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions