Skip to content

[Bug] Automatic bar width with single X value too thin for range. #1308

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

Closed
lewisjb opened this issue Jan 18, 2017 · 3 comments
Closed

[Bug] Automatic bar width with single X value too thin for range. #1308

lewisjb opened this issue Jan 18, 2017 · 3 comments

Comments

@lewisjb
Copy link

lewisjb commented Jan 18, 2017

The width of a bar when there is only 1 X value is too thin in some cases because it doesn't take the xaxis range into account.

Example: http://codepen.io/anon/pen/rjWoyY

As you can see, the only difference between the two plots is one has a second trace, but the thickness of the bars on them is drastically different.

@etpinard
Copy link
Contributor

Thanks for the headsup.

What is the desired behavior in your mind?

In the meantime, note that in >v1.19.0 you can set the bar width, see example -> http://codepen.io/etpinard/pen/VPPvpM

@lewisjb
Copy link
Author

lewisjb commented Jan 18, 2017

@etpinard As I haven't looked at how it currently chooses the width, I wouldn't be able to give a desired behaviour that fits properly. I'm aware it's vague because it is an odd issue to fix, but thought I would put it here in-case somebody had a genius solution.

I did try manually setting the width, but ran into a different issue with it (which you can see in the issue referenced above)

@etpinard
Copy link
Contributor

merged into #1346

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