vran-dev / obsidian-contribution-graph

generate interactive gitxxx style contribution graph for obsidian, use it to track your goals, habits, or anything else you want to track.
Apache License 2.0
244 stars 5 forks source link

[feature request] support for displaying and styling cell rules for empty, 'false' and '0' values #87

Open benjaminparry opened 4 months ago

benjaminparry commented 4 months ago

Apologies if I have missed this functionality in the docs and previous issues.

Numerical values

I’ve tracking some activities as page properties as follows:

[activity:: numerical_value]

Numerical values such as distace work perfectly for my needs for example swim: 2000. I can then set styling rules to visualise data based on effort (low/med/high/goal).

However I don’t appear to be able to style based on 0 values (related to True/False/Empty values below).

Screenshot 2024-06-14 at 09 49 13

True/False/Empty values

I’m tracking others activities differently, like tasks, so can have 3 outcomes as follows:

  1. [activity:: ]no recorded value i.e. I didn’t track the activity that day (style grey) dispays as [activity:: -] in live preview
  2. [activity:: false] – I didn’t complete the activity (style red)
  3. [activity:: true] – I complete the activity (style green)

How the above would be visualised below.

Screenshot 2024-06-14 at 10 00 44

Currently [activity:: true] returns a value of 1 so I can visualise that no problem.

What I’d really like to be able to do is style the other values to help visualise the bigger picture.

I appreciate part of this might be able to be done as Tasks.

Thanks again for such a useful plugin, it has transformed the way I track and monitor my progress withing Obsidian.