Update app.py
Browse files
app.py
CHANGED
@@ -408,7 +408,7 @@ def plot_student_metrics(student_metrics_df):
|
|
408 |
ax.set_ylabel('Percentage (%)')
|
409 |
ax.set_title('Student Attendance and Engagement Metrics')
|
410 |
# ax.legend()
|
411 |
-
ax.legend(loc='upper right', bbox_to_anchor=(1.
|
412 |
ax.set_xticks(index) # Set x-ticks to the index
|
413 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right') # Set student names as x-tick labels
|
414 |
|
|
|
408 |
ax.set_ylabel('Percentage (%)')
|
409 |
ax.set_title('Student Attendance and Engagement Metrics')
|
410 |
# ax.legend()
|
411 |
+
ax.legend(loc='upper right', bbox_to_anchor=(1.25, 1), borderaxespad=0.)
|
412 |
ax.set_xticks(index) # Set x-ticks to the index
|
413 |
ax.set_xticklabels(student_metrics_df['Student'], rotation=0, ha='right') # Set student names as x-tick labels
|
414 |
|