obsidian-mood-tracker icon indicating copy to clipboard operation
obsidian-mood-tracker copied to clipboard

Enhancement: Add a line graph for unstable mood (mood swings).

Open tiovialde opened this issue 1 year ago • 2 comments

It would be a great thing if the graph showed mood trend (mood swings) as a line graph of a certain color that would show turbulence in moods. Because for me personally, having a bad mood is a natural process, but mood swings are a bigger problem. Currently, mood log is displayed under each bar of the graph upon clicking on it, so it needs to be checked manually. Instead, it could be displayed graphically over the bar for each day.

Think of it as an earthquake-type of a line of a different color (customizable) that would run across the present graph.

It would probably need to be a toggle thingy that one could turn on/off if need be. The more mood swings on a particular day, the more unstable the line graph would look over the particular day.

Say, one feels great in the morning (5) then horrible in two hours (1) and okay again (3) in the evening and awesome again 1 hour later (5). Now, the graph only averages the values. If there was this line graph showing rapid mood changes, then one could see if the mood swing patterns are present repeatedly because the graph would show elevated line graph on certain days and one could do something about it.

This is the best way I can describe it. I have no idea how this would need to be programmed, but perhaps it could just record mood variables and display them individually (every single change, similar to this picture) image

Visually, it might look something like this: image

tiovialde avatar Nov 22 '24 10:11 tiovialde

@tiovialde This looks really useful - although I'm not sure if it can be implemented with charts.js (library I'm using) as you envision. I wonder if a different mode - one that would display only graph (with fine-grained resolution), without bars - will achieve the same effect? It's definitely more doable :)

dartungar avatar Nov 23 '24 13:11 dartungar

Thanks for considering it, @dartungar

By "fine-grained" you mean something like this? image All my comments are in the picture.

tiovialde avatar Nov 23 '24 17:11 tiovialde