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

Start of Calendar View #85

Open Senor-Franco opened 4 months ago

Senor-Franco commented 4 months ago

It seems that the Calendar view has a built in padding for the day and Month, that I would prefer to manipulate/remove

Example below where I set the start date as 2024/06/03 but it creates an empty May. Similarly it also always shows the day before the actual start date entered (shows Sunday 2024/06/02). See below:

image

As far as I can tell, I believe the issue comes from calendarGraphRender.ts with the following minus 1's shown below. I tried altering this, but really have no idea what I am doing so was unable to generate a new plugin/javascript file? I have a feeling this is probably easy so I apologize for not being able to get it to work.

image

LemurTech commented 3 months ago

@Senor-Franco - Did you ever have any luck with this? The problem seems even worse in month-track view. Here I've set the date to start on Jan 1, but it pads it with all these prior days and the cells for January get pushed out to the right:

image