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

Vertical legend columns are not aligned #3387

Closed
amir-hadzic opened this issue Sep 29, 2016 · 2 comments
Closed

Vertical legend columns are not aligned #3387

amir-hadzic opened this issue Sep 29, 2016 · 2 comments

Comments

@amir-hadzic
Copy link

amir-hadzic commented Sep 29, 2016

Hi,

Please see the below screenshot of how the legend looks like when there are many legend items, and they wrap into two columns. Note how the columns are not aligned. The first item on the legend should not have top padding (or padding should be applied for first item of each column).

padding

Any suggestions on how to workaround this?

Edit: here's a jsfiddle as well: http://jsfiddle.net/advqnq89/

@etimberg
Copy link
Member

@amir-hadzic to fix this you would need to modify the legend draw code https://github.com/chartjs/Chart.js/blob/master/src/core/core.legend.js#L393-L409

I'd be happy to look at PR for this

@etimberg
Copy link
Member

Done in #3569

@etimberg etimberg added this to the Version 2.5 milestone Nov 18, 2016
exwm pushed a commit to exwm/Chart.js that referenced this issue Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants