Watson icon indicating copy to clipboard operation
Watson copied to clipboard

FR: Visualize stats

Open varac opened this issue 2 years ago • 3 comments

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

  • https://github.com/mrusme/zeit#statistics:

image

image

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

varac avatar Feb 06 '23 13:02 varac

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.

varac avatar Feb 06 '23 13:02 varac

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

joelostblom avatar Mar 22 '23 01:03 joelostblom

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

k4j8 avatar Jun 10 '23 15:06 k4j8