Richardsl / heatmap-calendar-obsidian

An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Apache License 2.0
614 stars 102 forks source link

2023 Heatmap Empty #105

Closed fonky415 closed 7 months ago

fonky415 commented 8 months ago

Now that it's 2024, the heatmaps for 2023 and previous years are broken. Shows empty cells. How could I fix this?

Screenshot 2024-01-01 at 2 04 37 PM
belaset commented 7 months ago

Heatmap defaults to "current year" unless you specify otherwise, so you have to put

const calendarData = { year: 2023 }

on your 2023 calendars and year: 2024 on this year's.

Vinfall commented 7 months ago

Now I know why the generated heatmap has nothing but a 24 in the upper-left corner (it indicates the year) after wasting 50 minutes updating my templates without success then checking issue tracker and solving this within 30 seconds🤦🏼.

fonky415 commented 7 months ago

Replacing it for me doesn't work...

Screenshot 2024-01-03 at 11 22 00 PM

Where am I supposed to place the additional year: 2024? I put it here but it isn't working.

Screenshot 2024-01-03 at 11 24 19 PM

Thanks in advance @belaset

belaset commented 7 months ago

You're close - for the 2023 heatmap you'd put:

const calendarData = {
    year: 2023,
    intensityScaleStart: 1,
    intensityScaleEnd: 9,
    colors: { ... 
    ...the rest of your stuff here...
}

Change the year for 2024 accordingly :)

fonky415 commented 7 months ago

Thank you so much!!! You're actually a savior. Have a great rest of your day

belaset commented 7 months ago

Happy to help :)