Commit Graph

20 Commits

Author SHA1 Message Date
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Louis 5f9fe99e7b
fix(sleep-reports): #286 Init all days in the period to remove gaps (#341)
* fix(sleep-reports): #286 Init all days in the period to remove gaps

* Only account for dates (not times) in sleep graph dates init

Co-authored-by: Christopher C. Wells <git@chris-wells.net>
2021-12-31 10:17:21 -05:00
Christopher C. Wells 81aa3b25b0 Correct object member access syntax 2021-11-03 20:10:37 -07:00
codisart bb8466b51b refacto(sleep-reports): #283 Replace times and labels lists by a single days list. 2021-11-03 20:10:37 -07:00
codisart c76f7d7d2d refacto(sleep-reports): #283 Rename some variables and add constants for magic strings 2021-10-30 07:23:15 -07:00
fodi666 de1a8f230a Update sleep_pattern.py
i removed the 'autorange' attribute and reversed the axis manually
2021-08-29 04:48:25 -07:00
fodi666 0e07fce976 reversing y-axis of sleep plot (top to down) 2021-08-29 04:48:25 -07:00
Christopher C. Wells e137676bcd Use `TIME_FORMAT` in sleep pattern graph
Fixes #287
2021-08-28 13:57:31 -07:00
Christopher C. Wells fb16cdb676 Don't show hover text on sleep pattern bars 2021-08-28 13:30:36 -07:00
Christopher C. Wells 1802733fd7 Do not show time on sleep graph x-axis; center bars
Closes #288
2021-08-27 20:47:52 -07:00
Christopher C. Wells ce805f501b Ensure lists are initialized for sleep pattern graph days
Fixed #293
2021-08-27 20:06:18 -07:00
Christopher C. Wells e6838a0c0f Correct sleep graph handling for entries that cross DST 2021-04-11 13:56:40 -07:00
Christopher Charbonneau Wells 3f1a7d9a9d
Refactor to remove pandas dependency (#177)
* Use regular dicts for sleep pattern (WIP)

* Remove dataframes code from sleep pattern graph

* Reimplement UTC offset change handling

* Move label formatting in to a function

* Remove pandas!

* Fix linting issue

* Add dev requirements to generated requirements.txt

* Stop committing Pipfile.lock

Pipenv is designed to pin to a specific version of Python. Including the lock
file can lead to failed builds or broken package configurations on different
system architectures and/or Python versions.
2020-12-02 20:15:22 -08:00
Christopher C. Wells 4d74df27d9 Remove padding and borders from Sleep Pattern graph 2020-03-17 05:42:24 -07:00
Christopher C. Wells 3ae4010bb2 Replace use of deprecated Pandas method. 2019-08-22 20:12:35 -07:00
Christopher C. Wells 8ed0e9117a Add translatable strings support to reports app. 2019-04-14 13:32:46 -07:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells 9311fe2cee Replace deprecating pandas methods. 2017-11-18 07:42:48 -05:00
Christopher Charbonneau Wells 490e07c381 Handle utc offset changes (daylight savings) in the Sleep Patterns graph.
This change simply adjusts the size of the bar in the graph if an offset change happened between a sleep entry's start and end date.
2017-11-07 06:23:19 -05:00
Christopher Charbonneau Wells c5612b102d Refactor reports graphs in to separate files. 2017-11-03 23:03:24 -04:00