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

Shorter X-Axis labels on bar graphs produce wider bars, longer labels= narrow bars #5888

Closed
mpunak opened this issue Dec 5, 2018 · 5 comments

Comments

@mpunak
Copy link

mpunak commented Dec 5, 2018

Expected behavior
Datalabel length for X-axis labels should have no effect on bar width

Current Behavior
Shortening the length of the text in an X-Axis label widens the bar above it.

https://jsfiddle.net/pqs6te04/2/

Steps to Reproduce

  1. Click on the "Relabel" button and notice how the bars widen and shrink based on label size.

Context

This issue becomes particularly pronounced in a small graph with only two bars occupying a small area of the screen.

@simonbrunel
Copy link
Member

Can you update your fiddle with the latest version (2.7.3) and confirm that the issue still exists?

@mpunak
Copy link
Author

mpunak commented Dec 5, 2018

Fiddle updated. Confirmed issue still exists.

@simonbrunel
Copy link
Member

Thanks! Very weird indeed, though I think it's fixed in master (maybe by #5884, @nagix)

@kurkle
Copy link
Member

kurkle commented Dec 5, 2018

Its fixed in master: https://jsfiddle.net/pqs6te04/2/

@nagix
Copy link
Contributor

nagix commented Dec 5, 2018

Closing as duplication of #5818 and fixed by #5884

@nagix nagix closed this as completed Dec 5, 2018
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

4 participants