ProfessorLeVesseur commited on
Commit
a53b5fc
1 Parent(s): ae5b316

Update visualization.py

Browse files
Files changed (1) hide show
  1. visualization.py +2 -3
visualization.py CHANGED
@@ -52,11 +52,10 @@ class Visualization:
52
  height = bar.get_height()
53
  ax.text(bar.get_x() + bar.get_width() / 2, height, f'{height:.0f}%', ha='center', va='bottom', color='black')
54
 
55
- ax.axhline(y=attendance_avg_stats, color='#005288', linestyle='--', linewidth=1.5, label=f'Attendance Average: {attendance_avg_stats}%')
56
- ax.axhline(y=engagement_avg_stats, color='#3AB0FF', linestyle='--', linewidth=1.5, label=f'Engagement Average: {engagement_avg_stats}%')
57
-
58
  ax.axhline(y=90, color='#48BB88', linestyle='--', linewidth=1.5, label=f'Attendance Threshold: ≥ 90%')
59
  ax.axhline(y=80, color='#235E44', linestyle='--', linewidth=1.5, label=f'Engagement Threshold: ≥ 80%')
 
 
60
 
61
  ax.set_xlabel('Student')
62
  ax.set_ylabel('Percentage (%)')
 
52
  height = bar.get_height()
53
  ax.text(bar.get_x() + bar.get_width() / 2, height, f'{height:.0f}%', ha='center', va='bottom', color='black')
54
 
 
 
 
55
  ax.axhline(y=90, color='#48BB88', linestyle='--', linewidth=1.5, label=f'Attendance Threshold: ≥ 90%')
56
  ax.axhline(y=80, color='#235E44', linestyle='--', linewidth=1.5, label=f'Engagement Threshold: ≥ 80%')
57
+ ax.axhline(y=attendance_avg_stats, color='#005288', linestyle='--', linewidth=1.5, label=f'Attendance Average: {attendance_avg_stats}%')
58
+ ax.axhline(y=engagement_avg_stats, color='#3AB0FF', linestyle='--', linewidth=1.5, label=f'Engagement Average: {engagement_avg_stats}%')
59
 
60
  ax.set_xlabel('Student')
61
  ax.set_ylabel('Percentage (%)')