Update app.py
Browse files
app.py
CHANGED
@@ -494,7 +494,7 @@ def plot_student_metrics(student_metrics_df, attendance_avg_stats, engagement_av
|
|
494 |
ax.set_title('Student Attendance and Engagement Metrics')
|
495 |
# ax.legend()
|
496 |
# ax.legend(loc='upper right', bbox_to_anchor=(1.25, 1), borderaxespad=0.)
|
497 |
-
ax.legend(loc='upper right')
|
498 |
ax.set_xticks(index) # Set x-ticks to the index
|
499 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right') # Set student names as x-tick labels
|
500 |
# Set the y-axis limits and tick locations
|
|
|
494 |
ax.set_title('Student Attendance and Engagement Metrics')
|
495 |
# ax.legend()
|
496 |
# ax.legend(loc='upper right', bbox_to_anchor=(1.25, 1), borderaxespad=0.)
|
497 |
+
ax.legend(loc='upper right', bbox_to_anchor=(0., 1.), borderaxespad=0.)
|
498 |
ax.set_xticks(index) # Set x-ticks to the index
|
499 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right') # Set student names as x-tick labels
|
500 |
# Set the y-axis limits and tick locations
|