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

Coordinate System and content misalign in bar charts #1040

Closed
MatthiasJobst opened this issue Nov 16, 2015 · 5 comments
Closed

Coordinate System and content misalign in bar charts #1040

MatthiasJobst opened this issue Nov 16, 2015 · 5 comments
Labels
Milestone

Comments

@MatthiasJobst
Copy link

Currently I have two bar charts which show different views of the same data. When one chart is filtered either by brushing or by selecting a bar and then reset something strange happens: The coordinate system and the bars start to misalign. Specifically in my example the x-Axis starts moving up every time.
Here is a fiddle that shows the effect: https://jsfiddle.net/MatthiasJobst/2ocxtzy5/16/
The image shows how it looks like after several iterations.
bildschirmfoto 2015-11-16 um 21 23 19
This does not happen in 1.7.5, but in 2.0.0 betas 19 and up.

@gordonwoodhull
Copy link
Contributor

Hi @MatthiasJobst, thanks for the report. This looks like it might be the same as #980, but I haven't been able to reproduce that or generate a test case.

We have done some work since around beta 14 to improve the resizing / responsive behavior. But the code is complicated and there certainly may be bugs.

Is there any chance you can produce a fiddle or something else I can try out to debug where the issue lies?

@gordonwoodhull gordonwoodhull added this to the v2.0 milestone Nov 16, 2015
@MatthiasJobst
Copy link
Author

Actually in the issue report there is a fiddle link included. Let me know if you cannot access it and I can paste the code here. It is a minimal example.

@gordonwoodhull
Copy link
Contributor

Sorry, don't know how I missed that.

That is very helpful, thanks!

@MatthiasJobst
Copy link
Author

Reading through the discussion in #980 setting the .height attribute provides a fix to the problem.

@gordonwoodhull
Copy link
Contributor

Glad to hear it. I'm glad the workaround works but it's still a bug. I'm going to merge this into #980 and continue the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants