Update visualization.py
Browse files- visualization.py +6 -3
visualization.py
CHANGED
|
@@ -39,8 +39,10 @@ class Visualization:
|
|
| 39 |
)
|
| 40 |
engagement_bars = ax.bar(
|
| 41 |
[i + bar_width / 2 for i in index],
|
| 42 |
-
student_metrics_df['Engagement (%)'],
|
| 43 |
-
width=bar_width, label='Engagement (%)',
|
|
|
|
|
|
|
| 44 |
color='#3AB0FF', alpha=0.7
|
| 45 |
)
|
| 46 |
|
|
@@ -63,7 +65,8 @@ class Visualization:
|
|
| 63 |
# ax.axhline(y=90, color='#005288', linestyle=':', linewidth=1.5, label=f'Attendance Threshold: ≥ 90%')
|
| 64 |
# ax.axhline(y=80, color='#3AB0FF', linestyle=':', linewidth=1.5, label=f'Engagement Threshold: ≥ 80%')
|
| 65 |
ax.axhline(y=attendance_avg_stats, color='#005288', linestyle='--', linewidth=1.5, label=f'Attendance Average: {attendance_avg_stats}%')
|
| 66 |
-
ax.axhline(y=engagement_avg_stats, color='#3AB0FF', linestyle='--', linewidth=1.5, label=f'Engagement Average: {engagement_avg_stats}%')
|
|
|
|
| 67 |
|
| 68 |
# Set the x-limits to ensure the fill covers the entire plot width
|
| 69 |
ax.set_xlim(left=x_min, right=x_max)
|
|
|
|
| 39 |
)
|
| 40 |
engagement_bars = ax.bar(
|
| 41 |
[i + bar_width / 2 for i in index],
|
| 42 |
+
# student_metrics_df['Engagement (%)'], # REMOVED REMOVED
|
| 43 |
+
# width=bar_width, label='Engagement (%)', # REMOVED REMOVED
|
| 44 |
+
student_metrics_df['Engaged (%)'],
|
| 45 |
+
width=bar_width, label='Engaged (%)',
|
| 46 |
color='#3AB0FF', alpha=0.7
|
| 47 |
)
|
| 48 |
|
|
|
|
| 65 |
# ax.axhline(y=90, color='#005288', linestyle=':', linewidth=1.5, label=f'Attendance Threshold: ≥ 90%')
|
| 66 |
# ax.axhline(y=80, color='#3AB0FF', linestyle=':', linewidth=1.5, label=f'Engagement Threshold: ≥ 80%')
|
| 67 |
ax.axhline(y=attendance_avg_stats, color='#005288', linestyle='--', linewidth=1.5, label=f'Attendance Average: {attendance_avg_stats}%')
|
| 68 |
+
# ax.axhline(y=engagement_avg_stats, color='#3AB0FF', linestyle='--', linewidth=1.5, label=f'Engagement Average: {engagement_avg_stats}%') # REMOVED REMOVED
|
| 69 |
+
ax.axhline(y=engagement_avg_stats, color='#3AB0FF', linestyle='--', linewidth=1.5, label=f'Engaged Average: {engagement_avg_stats}%')
|
| 70 |
|
| 71 |
# Set the x-limits to ensure the fill covers the entire plot width
|
| 72 |
ax.set_xlim(left=x_min, right=x_max)
|