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

Segments edges rendering issues #129

Open
toomuchdesign opened this issue Feb 15, 2020 · 2 comments
Open

Segments edges rendering issues #129

toomuchdesign opened this issue Feb 15, 2020 · 2 comments

Comments

@toomuchdesign
Copy link
Owner

toomuchdesign commented Feb 15, 2020

The way some browsers render SVG paths cause a few visual issues especially when when full pies are rendered:

64119904-2d96e700-cd9b-11e9-9663-fa4cb1425524

More specifically a few OS/browser combinations seem to not being able to render SVG stroke line caps precisely enough. Here is a list browsers where issues where reported and reproduced.

OS Browser Issue
iOS iOS Safari full pie charts visual glitch when animate !== true
Windows 10 Firefox v68+ full pie charts visual glitch when animate === true

Somehow SVG stroke-dasharray property is the key here but different browsers react in opposite ways so that I can't currently see an easy patch not involving browser detection.

stroke-dasharray + stroke-dashoffset are currently only appended when animation is enabled.

Partially supported

OS Browser Issue
Windows 10 Edge ≤ v44 animation === true breaks visually

Not supported

  • IE ≤ 10

Related issues

@BBaysinger
Copy link

The example image provided gives an idea of one possible abnormality, but it seems like it might not be a deal breaker. I'm not seeing what browser that example is from, or what glitches result in other browsers.

@toomuchdesign
Copy link
Owner Author

The visual glitch is the one showed in the picture and it's currently reported in the browsers listed in the table.

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

2 participants