Open fufuShih opened 1 year ago
I tried to use nested frontmatter to made heatmap, but the cell not showing
Following is my preview:
My frontmatter is:
--- date: 2023-07-04 week: 2023-W27 year: 2023 exercise: 25 min tracks: mediator: true ---
My dataview is:
dv.span(`** Meditation **`) /* optional βΉοΈπ€β‘β π§©βββ³ππΎπππππβ¨οΈπΈοΈπ πβ¨ */ const calendarData = { year: "2023", // (optional) defaults to current year colors: { white: ["#fff","#fff","#fff","#fff","#fff"], }, entries: [], // (required) populated in the DataviewJS loop below } for (let page of dv.pages('"0.Project/Personal/Daily"').where(p => p.tracks)) { if(page.tracks.mediator) { calendarData.entries.push({ date: page.file.name, content: await dv.span(`[π](${page.file.name})`) }) console.log(calendarData) } } renderHeatmapCalendar(this.container, calendarData)
dv.span("**ποΈ Exercise ποΈ**") const calendarData = { year: 2023, colors: { red: ["#ff9e82","#ff7b55","#ff4d1a","#e73400","#bd2a00",] }, entries: [] } for(let page of dv.pages('"0.Project/Personal/Daily"').where(p=>p.exercise)){ calendarData.entries.push({ date: page.file.name, intensity: page.exercise }) } renderHeatmapCalendar(this.container, calendarData)
And in Console, it has entries but cell not showing. So how can I solve it
I tried to use nested frontmatter to made heatmap, but the cell not showing
Following is my preview:![image](https://github.com/Richardsl/heatmap-calendar-obsidian/assets/25448040/cb8cc237-8cad-41de-b5b3-1d0b87ad9609)
My frontmatter is:
My dataview is:
And in Console, it has entries but cell not showing. So how can I solve it![image](https://github.com/Richardsl/heatmap-calendar-obsidian/assets/25448040/b15df76b-6e7a-49d3-a72d-a536aacf3c7f)