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

Can't render day and month labels #144

Open
thai-myshu opened this issue Jan 19, 2021 · 1 comment
Open

Can't render day and month labels #144

thai-myshu opened this issue Jan 19, 2021 · 1 comment

Comments

@thai-myshu
Copy link

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?

@mrbrianevans
Copy link

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

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

2 participants