Commit graph

39 commits

Author SHA1 Message Date
Kumi 2b37030938
fix: update legend label in moodpies chart
Updated the property for setting the chart legend's label from `legend`
to `legend_label` in the `moodpies` function to align with the latest
library syntax. This change ensures compatibility with newer versions of
the visualization library, preventing potential issues with legend
rendering in mood statistics charts.
2024-03-24 16:29:27 +01:00
Kumi 71c34db6d8
refactor(mood/stats): streamline and optimize visualizations
This commit streamlines mood and activity visualization code in
mood/statistics.py for better readability and maintainability. By
consolidating similar code blocks, replacing ' extension calls with
consistent double quotes, and reformatting large data structures for
clarity, we ensure the code is more Pythonic and easier to follow.
Additionally, the alterations in how pie charts and mood statistics are
generated not only maintain functionality but also reduce cognitive load
when navigating the codebase. These changes pave the way for future
enhancements and debugging efforts by making the codebase more
approachable.
2024-03-24 16:28:10 +01:00
Kumi c7295829fc
refactor(statistics.py): standardize chart height param
Standardized the parameter name for setting chart height across all
chart creation functions in statistics.py. Replaced `plot_height` with
`height` to align with the latest visualization library conventions.
This change enhances code consistency and adheres to the updated library
API, ensuring future compatibility and easier maintenance.
2024-03-24 16:23:48 +01:00
Kumi 218d0290de Move nav sections to respective apps 2021-10-24 17:45:23 +02:00
Kumi 42c498923c Order activities by name by default 2021-03-03 10:35:54 +01:00
Kumi eb7344305d Basic activity statistics 2021-03-03 08:39:26 +01:00
Kumi 18e9ce1746 Colored buttons for mood selection 2021-03-01 21:04:44 +01:00
Kumi 35fd2450f4 Badly implement mood pie charts 2021-03-01 18:05:14 +01:00
Kumi 00eadf9b90 Handle empty database in mood template tags 2021-03-01 07:12:15 +01:00
Kumi e93798c266 Replace max time parameter by current time 2021-02-28 19:58:38 +01:00
Kumi 67cf834fa9 Fix moodstats call 2021-02-26 18:09:13 +01:00
Kumi 5cef852510 Fix moodstats signature
Remove unused variables
Fix time selection for CSV
2021-02-26 07:38:17 +01:00
Kumi 539ee03709 Fix activitystats signature 2021-02-26 07:26:52 +01:00
Kumi cbcf7a365c Add monthly and yearly activity counters 2021-02-25 15:33:28 +01:00
Kumi 255f4d721c Add statistics to sidebar
Fix stupid mistake
2021-02-22 07:59:51 +01:00
Kumi 209c1c1429 Add rolling average to mood statistics chart
Add ordering clause to Status objects
2021-02-22 07:51:27 +01:00
Kumi a19c0a2ad1 Make prettier 2021-02-21 21:03:34 +01:00
Kumi bbb062ca0e Adding activity output
Bug fixing
2021-02-21 20:59:39 +01:00
Kumi 261531f9bf Reworked statistics with HoloViews/Bokeh 2021-02-21 20:13:22 +01:00
Kumi 49ae5ef7d9 Implement statistics in Javascript only to soon replace this with HoloViews 2021-02-21 11:24:25 +01:00
Kumi d658fa4ea6 Fix mindless copy-paste programming 2021-02-17 05:55:04 +00:00
Kumi 431f7acba2 Rename meds to health
Add more health related models
Add activity categories
2021-02-16 12:15:56 +00:00
Kumi 1d3251d886 Calculate average moods from average daily moods 2021-01-17 16:49:22 +01:00
Kumi 0161ef48fb Fix file name display in status view 2021-01-06 14:03:13 +01:00
Kumi 55482d2262 Fix upload paths for StatusMedia 2021-01-06 13:59:37 +01:00
Kumi f83a4cc49f Display status media in status view 2021-01-04 11:34:05 +01:00
Kumi 6750ab44f0 Updated StatusMedia model to match form signature 2021-01-04 11:28:24 +01:00
Kumi af5e247680 Make activities not required for mood status 2021-01-04 07:38:28 +01:00
Kumi eff769c625 Filter out status entries that don't have a mood associated from average_mood 2021-01-01 21:46:38 +01:00
Kumi 192af2eb84 Add missing enctype to form with file uploads 2021-01-01 17:48:12 +01:00
Kumi 69ecb4640f Fix something that seemed to work anyway 2021-01-01 17:01:38 +01:00
Kumi 72cbf3ac01 Fix copy-paste error 2021-01-01 16:55:45 +01:00
Kumi 26bcb49be2 Fix silly mistake 2021-01-01 13:55:19 +01:00
Kumi 1298249994 Catch potential division by zero 2020-12-30 12:07:40 +01:00
Kumi 82e563cab6 Fix wrong variable use 2020-12-29 19:25:05 +01:00
Kumi 077c26bc0a Implement Telegram notifications
Some refactoring
2020-12-29 17:26:48 +01:00
Kumi 0ed5c42d84 Fix form validation for Status changes 2020-12-28 22:32:32 +01:00
Kumi 233a76a588 Display line breaks in status view 2020-12-27 21:19:38 +01:00
Kumi dcce30af13 Initial commit 2020-12-27 18:49:54 +01:00