issues
search
brunobeeee
/
drinklog
A habit tracker for tracking water intake.
0
stars
0
forks
source link
feature/issue-75/monthly-averages-on-year
#85
Closed
brunobeeee
closed
1 month ago
brunobeeee
commented
1 month ago
Closes #75
Changes made by this Pull Request
In
views.py
Create a second df and fill up all missing dates with
intensity = 0
Create a
px.histogram
that uses this df and calculates the monthly averages
Pass the second figure through the context
In the frontend JS
Render the plot in JS instead of in Django
When clicking on year section render the second plot passed by Django to show the monthly avgs
Closes #75
Changes made by this Pull Request
In
views.py
intensity = 0
px.histogram
that uses this df and calculates the monthly averagesIn the frontend JS