Update visualization.py
Browse files- visualization.py +3 -4
visualization.py
CHANGED
@@ -56,10 +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 |
-
ax.fill_between(
|
60 |
-
ax.fill_between(
|
61 |
-
|
62 |
-
|
63 |
ax.set_xlabel('Student')
|
64 |
ax.set_ylabel('Percentage (%)')
|
65 |
ax.set_title('Student Attendance and Engagement Metrics')
|
|
|
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=np.linspace(ax.get_xlim() <sup> </sup>, ax.get_xlim()[1], 100, alpha=0.1, color='#005288', label='Attendance Goal')
|
60 |
+
ax.fill_between(x=np.linspace(ax.get_xlim() <sup> </sup>, ax.get_xlim()[1], 89, alpha=0.1, color='#3AB0FF', label='Engagement Goal')
|
61 |
+
|
|
|
62 |
ax.set_xlabel('Student')
|
63 |
ax.set_ylabel('Percentage (%)')
|
64 |
ax.set_title('Student Attendance and Engagement Metrics')
|