svelte-heatmap icon indicating copy to clipboard operation
svelte-heatmap copied to clipboard

Can't render day and month labels

Open thai-myshu opened this issue 4 years ago • 1 comments

Hello again,

https://svelte-heatmap.netlify.app/ provided the explicit example I was looking for—thanks!

I created this REPL accordingly.

However, now I've encountered another problem: I can't seem to get the day or month labels to render, no matter what values I provide to monthLabelHeight and dayLabelWidth.

This is also illustrated at https://svelte-heatmap.netlify.app/, where you can only ever so slightly see the bottom of the month labels.

Could this be an issue with how the viewBox is calculated?

thai-myshu avatar Jan 19 '21 23:01 thai-myshu

I was also having an issue with dayLabelWidth. I solved it by passing a number to the prop instead of a string.

Example:

dayLabelWidth={10}

Doesn't work if you put a string like this: (DON'T DO)

dayLabelWidth='10'

Changing the prop type to a number solved it for me. Hope this helps

mrbrianevans avatar Feb 11 '22 17:02 mrbrianevans