Richardsl / heatmap-calendar-obsidian

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

Heatmap not rendering #32

Closed kanziekan closed 2 years ago

kanziekan commented 2 years ago

I've been having issues getting the heatmap plugin to work. My daily notes are in the date format: YYYY-MM-DD so I'm confused as to why it's not working

image

Nothing shows. I use a Windows 10 computer.

image

JhCandiceYao commented 2 years ago

same problem. Have you figured out how to do this? Mine is always showing a full-year blank graph..

Richardsl commented 2 years ago

what operating system are you guys using? can you console.log the results of dv.pages?

Richardsl commented 2 years ago

also, do you have the latest version of both obsidian and heatmap?

kanziekan commented 2 years ago

what operating system are you guys using? can you console.log the results of dv.pages?

I use Windows 10 and I'm not sure how to do that, I'm not very strong with coding.

also, do you have the latest version of both obsidian and heatmap?

Yes I do have the latest version of both

Richardsl commented 2 years ago

Please try adding a dv.pagraph to your code like below, and check if it prints out anything

for(let page of dv.pages('"#-Journal"').where(p=>p.mood)){
    dv.paragraph(page.file.name + " Mood: " + page.mood) 
        calendarData.entries.push({
            date: page.file.name,
            intensity: page.mood,
    })  
}
kanziekan commented 2 years ago

image image It unfortunately still doesn't change anything. Maybe there is something in my settings? I've enabled Javascript Queries for Dateview.

Azurewren commented 2 years ago

I experienced this issue too. I fixed it by changing '"#-Journal"' section to '#-Journal'. Basically removed the double quotes from around the hash-tag.

kanziekan commented 2 years ago

I experienced this issue too. I fixed it by changing '"#-Journal"' section to '#-Journal'. Basically removed the double quotes from around the hash-tag.

That alone didn't work for me... image

BUT I figured out the problem, it had to do with the emoji I was using combined with removing the double quotes. So thank you @Azurewren ! image image