SamanthaStorm commited on
Commit
d270769
·
verified ·
1 Parent(s): 5888ec6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 i, (x, y) in enumerate(zip(parsed_x, scores)):
32
- label = labels[i]
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)