diff --git a/app/routes/dashboard.py b/app/routes/dashboard.py index a7e92ec..3aebc4c 100644 --- a/app/routes/dashboard.py +++ b/app/routes/dashboard.py @@ -27,12 +27,13 @@ def bar_chart(): plt.xlabel("Category") plt.ylabel("Count") + return plot_to_base64() # Pie chart def pie_chart(): labels = ["Completed", "In Progress", "Pending"] - sizes = [65, 20, 15] + sizes = [55, 20, 25] plt.figure() plt.pie(sizes, labels=labels, autopct="%1.1f%%", startangle=140) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index f9ab350..cdfa26e 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -4,11 +4,12 @@