diff options
| author | hmjsp <hmjsp@liber8bits.com> | 2025-12-28 15:38:17 +0000 |
|---|---|---|
| committer | hmjsp <hmjsp@liber8bits.com> | 2025-12-28 20:09:45 +0000 |
| commit | bc193c90d5979a2f96ac982210b0adee7151bf1e (patch) | |
| tree | 1fea05df5fd2d5205388827cc92f196fd3f44db1 /display.py | |
| parent | cdfbe29715f7cc36ffc0525120dcb19785173c4c (diff) | |
| download | chronologgy-bc193c90d5979a2f96ac982210b0adee7151bf1e.zip | |
stop/start & rest bank complete on stopwatch
- cumulative time wasn't too bad to add actually
- one id per session added
- change formatting.py so that it only counts time that is of type
'focus' as time to put on chart
- add pie chart and time in minutes rather than seconds to display.py
Diffstat (limited to 'display.py')
| -rwxr-xr-x | display.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -14,12 +14,14 @@ parser.add_argument("logfile", help="log file to display chart of", args = parser.parse_args() day_times = f.per_tag_per_day(args.logfile) -print(day_times) for day in day_times: chart = pygal.Bar() + pie = pygal.Pie() for key, value in day.items(): if key == "date": continue - chart.add(key, value) - chart.render_to_file(str(day["date"]+".svg")) + chart.add(key, round(value/60, 0)) + pie.add(key, round(value/60, 0)) + chart.render_to_file(str(day["date"]+"-bar.svg")) + pie.render_to_file(str(day["date"]+"-pie.svg")) |
