TailorDev / Watson

:watch: A wonderful CLI to track your time!
http://tailordev.github.io/Watson/
MIT License
2.41k stars 237 forks source link

FR: Visualize stats #493

Open varac opened 1 year ago

varac commented 1 year ago

One feature missing is the ability to visualize work time over a week, like Zeit or Timewarrior provide. See these examples:

image

image

Imo a visualization like Zeit does it would the most useful to me.

varac commented 1 year ago

If anybody achieved this with with an additional program which could parse the output of watson list I'd appreciate feedback as well, but imo this should get baked into watson.

joelostblom commented 1 year ago

I have worked on this a bit locally and have a simple version that output stats for the last N weeks in the terminal using the "simple stackedbar plots" from https://github.com/piccolomo/plotext. They looks something like this:

image

For more complicated info I have a dashboard created using Vega-Altair, but there is not code for that which is sharable at the moment, and not sure I will build that out to a general interface. I think a few easy to view summaries in terminal can go a long way. A GitHub-like heatmap would be cool to add and depends on plotext getting support for that first https://github.com/piccolomo/plotext/issues/143.

I uploaded the script to a repo so that you can have a look and help building if if you want. Note that you need to run plotext with this PR applied https://github.com/piccolomo/plotext/pull/164

k4j8 commented 1 year ago

I've been using Plotly to create time-tracking charts for myself. If anyone is interested, I uploaded my scripts here: https://github.com/k4j8/watson-graphing.

Example: watson_graphing_basic