Hi, i’m trying to create a bar chart for my streamlit app, when i use st.plotly_chart() the graph works with colors but not with pattern shape. when i use fig.show() the pattern shape works but the graph its open in another tab.
pp_bar = px.bar(pp, x='value', y= 'variable', orientation='h', color='variable', color_discrete_map={"Bajo riesgo": "green", "Alto riesgo": "red"}, pattern_shape="variable", pattern_shape_map={"Bajo riesgo": ".", "Alto riesgo": "/"}, title='Prediction probabilities', hover_data=['variable', 'value'])
pp_bar.update_layout(showlegend=False, margin=dict(l=200, r=200, t=200, b=200))
pp_bar