Bar chart types

How can I to create a bar chart like this:

instead of this:
Screenshot from 2023-10-17 09-06-13

Hi @Joselito_Junior

It would be helpful to the community to also share the code used to produce your current plot.

1 Like

You can use a 3rd party library like Plotly to generate a chart like that Bar charts in Python and then use st.plotly_chart - Streamlit Docs to add it to your app

1 Like

Thank you so much @blackary. This was exactly what I was looking for.

Hi @dataprofessor
I used the example code disponlble on site.

The code was it:

import streamlit as st
import pandas as pd
import numpy as np

chart_data = pd.DataFrame(np.random.randn(20, 2), columns=["a", "b"])


Hi @Joselito_Junior ,

You can use plotly.
Here the example of it.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.