Update app.py
Browse files
app.py
CHANGED
|
@@ -145,7 +145,7 @@ else:
|
|
| 145 |
fig.update_traces(marker_color=color, marker_line_color=border_color, marker_line_width=border_width)
|
| 146 |
elif chart_type == "Barras":
|
| 147 |
if horizontal_bars:
|
| 148 |
-
fig = px.bar(data, x=y_names_list
|
| 149 |
else:
|
| 150 |
fig = px.bar(data, x="X", y=y_names_list, barmode='stack' if stacked_bars else 'group')
|
| 151 |
fig.update_traces(hovertemplate=hovertemplate)
|
|
@@ -215,5 +215,4 @@ else:
|
|
| 215 |
fig.update_layout(xaxis_autorange=True, yaxis_autorange=True)
|
| 216 |
|
| 217 |
# Informaci贸n adicional
|
| 218 |
-
st.write(""
|
| 219 |
-
""")
|
|
|
|
| 145 |
fig.update_traces(marker_color=color, marker_line_color=border_color, marker_line_width=border_width)
|
| 146 |
elif chart_type == "Barras":
|
| 147 |
if horizontal_bars:
|
| 148 |
+
fig = px.bar(data, x=y_names_list, y="X", orientation='h', barmode='stack' if stacked_bars else 'group')
|
| 149 |
else:
|
| 150 |
fig = px.bar(data, x="X", y=y_names_list, barmode='stack' if stacked_bars else 'group')
|
| 151 |
fig.update_traces(hovertemplate=hovertemplate)
|
|
|
|
| 215 |
fig.update_layout(xaxis_autorange=True, yaxis_autorange=True)
|
| 216 |
|
| 217 |
# Informaci贸n adicional
|
| 218 |
+
st.write("Aqu铆 puede a帽adir informaci贸n adicional sobre los gr谩ficos generados.")
|
|
|