Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -302,7 +302,8 @@ elif viz_type == "Submission Methods":
|
|
| 302 |
names='Submission Method',
|
| 303 |
values='Count',
|
| 304 |
title="Top 5 Submission Methods Distribution",
|
| 305 |
-
|
|
|
|
| 306 |
labels={"Count": "Number of Complaints", "Submission Method": "Method Submitted"},
|
| 307 |
hover_data=['Count']
|
| 308 |
)
|
|
|
|
| 302 |
names='Submission Method',
|
| 303 |
values='Count',
|
| 304 |
title="Top 5 Submission Methods Distribution",
|
| 305 |
+
color='Submission Method', # Automatically generates colors for each segment
|
| 306 |
+
color_discrete_sequence=px.colors.sequential.Inferno, # Correct reference to Inferno color scale
|
| 307 |
labels={"Count": "Number of Complaints", "Submission Method": "Method Submitted"},
|
| 308 |
hover_data=['Count']
|
| 309 |
)
|