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

Stacked bar chart legend label alignment is off in Chrome #1855

Open
mgd722 opened this issue Jan 9, 2022 · 3 comments
Open

Stacked bar chart legend label alignment is off in Chrome #1855

mgd722 opened this issue Jan 9, 2022 · 3 comments

Comments

@mgd722
Copy link

mgd722 commented Jan 9, 2022

Opening the stacked bar chart example in Chrome 96.0.4664.110 (Official Build) (arm64) on an M1 MacBook Pro, the labels in the legend are offset:

image

Same page opened on the same computer, but using Safari 15.1 (17612.2.9.1.20):

image

This must have been caused by a recent Chrome update, because I would have noticed this before in my code.

@mgd722
Copy link
Author

mgd722 commented Jan 9, 2022

Same with Chrome 97.0.4692.71. Not sure when exactly this broke but I am certain that this wasn't an issue before using this same code, so it must have been something that changed within Chrome.

@kum-deepak
Copy link
Collaborator

kum-deepak commented Jan 10, 2022

I think it is the new Chrome. One of the automated tests started failing in Chrome recently (the automated tests pull the latest Chrome). See #1852. The failing test is related to legend label positioning.

Spacarar added a commit to geodav-tech/dc.js that referenced this issue Jan 10, 2022
@congineer
Copy link

If someone will fix this please expose sub-label 'x', 'y', and 'LABEL_GAP' in dc.js API because hacking around is always bad for maintainability
dc js-chrome-clientHeight-bug-fix-Screenshot_20220113_152726
.

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

3 participants