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

fix(charts): svg width param cannot be negative #3478

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

blockdylanb
Copy link
Contributor

Description (optional)

The charts were doing some math to set the width of the chart, but some of the first renders were rendering a negative number which is not allowed for svg element. I just used Math.abs() to make sure it's always a positive number.

image

Copy link
Contributor

@schnogz schnogz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch 👏

@schnogz schnogz merged commit 76e2e58 into development Aug 17, 2021
@schnogz schnogz deleted the fix/svg-console-error branch August 17, 2021 17:02
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

Successfully merging this pull request may close these issues.

2 participants