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

SVG height not updating on resize? #416

Open
PatrikHampel opened this issue Jun 21, 2024 · 1 comment
Open

SVG height not updating on resize? #416

PatrikHampel opened this issue Jun 21, 2024 · 1 comment

Comments

@PatrikHampel
Copy link

PatrikHampel commented Jun 21, 2024

When I resize the container, the height of the chart is not getting updated.
I see that in the resize callback only the width is being updated. Is that intentional?

d3.select(window).on(`resize.${attrs.id}`, () => {
    const containerRect = d3.select(attrs.container).node().getBoundingClientRect();
    attrs.svg.attr('width', containerRect.width)
});
@bumbeishvili
Copy link
Owner

Yes, it's intentional

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