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

Heatmap Yaxis offset labels don't work #2033

Closed
violacambie opened this issue Nov 10, 2020 · 6 comments · Fixed by #4429
Closed

Heatmap Yaxis offset labels don't work #2033

violacambie opened this issue Nov 10, 2020 · 6 comments · Fixed by #4429
Labels
bug Something isn't working

Comments

@violacambie
Copy link

violacambie commented Nov 10, 2020

Bug report

HEATMAP: yaxis --> labels --> offsetY doesn't work for Heatmap with large amount of rows.

Codepen

https://codepen.io/Cambie/pen/wvWQoKR

Explanation

  • What is the behavior you expect?
    I would want to see the labels aligned with their respective rows
  • What is happening instead?
    with a big amount of rows the labels start to lose the alignment
  • What error message are you getting?
    none
@JulMack
Copy link

JulMack commented May 6, 2021

It seems to me this doesn't work at all. I'm using it on Angular11 and the yaxis.labels.offsetY option does not do anything in my heatmap. I was able to work around this, tho, with the style.cssClass option and a global style with translateY(3px). I guess this was necessary because for Angular Material's Roboto font the labels were not correctly aligned by themself.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@EduardChernyak
Copy link

It is still reproduced.

@brianlagunas
Copy link
Member

brianlagunas commented May 24, 2023

@EduardChernyak I will reopen this issue since you reported this is still an issue for you.

@brianlagunas brianlagunas reopened this May 24, 2023
cart-before-horse added a commit to cart-before-horse/apexcharts.js that referenced this issue Apr 24, 2024
@cart-before-horse
Copy link
Contributor

It seems like the offset is still present (reproduction link in op). Its growing bigger as the series getting larger.
I tried to fix it here pr #4429, now ticks and labels consistent no matter how many rows there are in total.

However i'm slightly concerned about labels positions
Not that they used to be perfectly aligned - more like their baseline was ~2px lower than corresponding tick (quite noticeable with larger font), and now it's more like the baseline matches the tick perfectly, rendering labels ~2px higher.

cart-before-horse added a commit to cart-before-horse/apexcharts.js that referenced this issue Apr 24, 2024
@cart-before-horse
Copy link
Contributor

nevermind, looks like parsing style attribute did the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants