Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cells are not showing #75

Open
corataine opened this issue Apr 5, 2023 · 8 comments
Open

Cells are not showing #75

corataine opened this issue Apr 5, 2023 · 8 comments

Comments

@corataine
Copy link

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
Copy link
Author

image

@emrestive
Copy link

Same issue here. Did u found any fix?

@luccomo
Copy link

luccomo commented Apr 11, 2023

Same

@gillespieza
Copy link

Do we vote here? +1

@johnsbuck
Copy link

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
Copy link

Just for context, here is the output

image

@luccomo
Copy link

luccomo commented Apr 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@johnsbuck @gillespieza @luccomo @corataine @emrestive and others