Update visualization.py
Browse files- visualization.py +3 -0
visualization.py
CHANGED
|
@@ -56,6 +56,9 @@ class Visualization:
|
|
| 56 |
ax.axhline(y=80, color='#3AB0FF', 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 (%)')
|
|
|
|
| 56 |
ax.axhline(y=80, color='#3AB0FF', 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 |
+
ax.fill_between(x, 90, 100, alpha=0.1, color='#005288', label='Attendance Goal')
|
| 60 |
+
ax.fill_between(x, 80, 89, alpha=0.1, color='#3AB0FF', label='Engagement Goal')
|
| 61 |
+
|
| 62 |
|
| 63 |
ax.set_xlabel('Student')
|
| 64 |
ax.set_ylabel('Percentage (%)')
|