heatmap-calendar-obsidian icon indicating copy to clipboard operation
heatmap-calendar-obsidian copied to clipboard

Cells are not showing

Open corataine opened this issue 1 year ago • 8 comments

Hi! I download the EXAMPLE_VAULT code. And I didn't change anything.But Cells are not showing,I cant find any bug. image

corataine avatar Apr 05 '23 17:04 corataine

image

corataine avatar Apr 05 '23 17:04 corataine

Same issue here. Did u found any fix?

emrestive avatar Apr 10 '23 21:04 emrestive

Same

luccomo avatar Apr 11 '23 21:04 luccomo

Do we vote here? +1

gillespieza avatar Apr 24 '23 10:04 gillespieza

The reason you see no alcohol activity is because the year is set to 2023, and there is no alcohol activity in 2023. If you set it to 2022, you will see the normal heatmap.


dv.span("**🍺 Alcohol Consumption 🍺**")

const calendarData = {
    year: 2022,
    colors: {
        blue: ["#ffdf04","#ffbe04","#ff9a03","#ff6d02","#ff2c01"]
    },
    entries: [],
    showCurrentDayBorder: false
}

for(let page of dv.pages('"daily notes"').where(p=>p.alcohol)){
    calendarData.entries.push({
        date: page.file.name,
        intensity: page.alcohol,
        content: await dv.span(`[](${page.file.name})`), //for hover preview
    })  
}

renderHeatmapCalendar(this.container, calendarData)

johnsbuck avatar Apr 29 '23 20:04 johnsbuck

Just for context, here is the output

image

johnsbuck avatar Apr 29 '23 21:04 johnsbuck

Thanks got it workingSent from my iPhoneOn Apr 29, 2023, at 3:00 PM, John Bucknam @.***> wrote: Just for context, here is the output

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

luccomo avatar Apr 29 '23 21:04 luccomo