Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ elif option == "Plots":
|
|
| 53 |
|
| 54 |
# Create the bar plot
|
| 55 |
fig1, ax1 = plt.subplots(figsize=(10, 6)) # Set figure size
|
| 56 |
-
bars = ax1.bar(category_counts
|
| 57 |
|
| 58 |
ax1.set_xlabel("Job Category")
|
| 59 |
ax1.set_ylabel("Number of Jobs")
|
|
|
|
| 53 |
|
| 54 |
# Create the bar plot
|
| 55 |
fig1, ax1 = plt.subplots(figsize=(10, 6)) # Set figure size
|
| 56 |
+
bars = ax1.bar(range(len(category_counts)), category_counts.values, color=colors[:len(category_counts)])
|
| 57 |
|
| 58 |
ax1.set_xlabel("Job Category")
|
| 59 |
ax1.set_ylabel("Number of Jobs")
|