Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,8 @@ def generate_abuse_score_chart(dates, scores, labels):
|
|
28 |
fig, ax = plt.subplots(figsize=(8, 3))
|
29 |
ax.plot(parsed_x, scores, marker='o', linestyle='-', color='darkred', linewidth=2)
|
30 |
|
31 |
-
for
|
32 |
-
|
33 |
-
ax.text(x, y + 2, f"{label}\n{int(y)}%", ha='center', fontsize=8, color='black')
|
34 |
|
35 |
ax.set_xticks(parsed_x)
|
36 |
ax.set_xticklabels(x_labels)
|
|
|
28 |
fig, ax = plt.subplots(figsize=(8, 3))
|
29 |
ax.plot(parsed_x, scores, marker='o', linestyle='-', color='darkred', linewidth=2)
|
30 |
|
31 |
+
for x, y in zip(parsed_x, scores):
|
32 |
+
ax.text(x, y + 2, f"{int(y)}%", ha='center', fontsize=8, color='black')
|
|
|
33 |
|
34 |
ax.set_xticks(parsed_x)
|
35 |
ax.set_xticklabels(x_labels)
|