Update app.py
Browse files
app.py
CHANGED
|
@@ -151,7 +151,10 @@ else:
|
|
| 151 |
fig = px.bar(data, x="X", y=y_names_list, barmode='stack' if stacked_bars else 'group')
|
| 152 |
fig.update_traces(hovertemplate=hovertemplate)
|
| 153 |
if use_multiple_colors:
|
| 154 |
-
|
|
|
|
|
|
|
|
|
|
| 155 |
else:
|
| 156 |
fig.update_traces(marker_color=color, marker_line_color=border_color, marker_line_width=border_width)
|
| 157 |
fig.update_layout(bargap=0.2)
|
|
@@ -171,7 +174,7 @@ else:
|
|
| 171 |
family=font_family,
|
| 172 |
size=18,
|
| 173 |
color="#374151",
|
| 174 |
-
weight="
|
| 175 |
)
|
| 176 |
),
|
| 177 |
**common_layout
|
|
|
|
| 151 |
fig = px.bar(data, x="X", y=y_names_list, barmode='stack' if stacked_bars else 'group')
|
| 152 |
fig.update_traces(hovertemplate=hovertemplate)
|
| 153 |
if use_multiple_colors:
|
| 154 |
+
if horizontal_bars:
|
| 155 |
+
fig.update_traces(marker_color=colors[:len(data)], marker_line_color=border_colors[:len(data)], marker_line_width=border_width)
|
| 156 |
+
else:
|
| 157 |
+
fig.update_traces(marker_color=colors[:len(x)], marker_line_color=border_colors[:len(x)], marker_line_width=border_width)
|
| 158 |
else:
|
| 159 |
fig.update_traces(marker_color=color, marker_line_color=border_color, marker_line_width=border_width)
|
| 160 |
fig.update_layout(bargap=0.2)
|
|
|
|
| 174 |
family=font_family,
|
| 175 |
size=18,
|
| 176 |
color="#374151",
|
| 177 |
+
weight="normal"
|
| 178 |
)
|
| 179 |
),
|
| 180 |
**common_layout
|