-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Shape type 'path' SVG causes TypeError: Cannot read property 'append' of undefined #1974
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
Comments
Thanks for the report. |
Wait. What browser are you using? |
Ha I see, your codepen imports |
Browser chrome://version/ report: Similar error in Firefox 55.0.3 (32-bit) TypeError: shapeLayer is undefined |
1-line fix - I'll get it. |
The issue is not with the type of shape, it's adding a shape to an overlaying axis. Thanks for the report! Side note @acats-dkolev - I notice you're using milliseconds for the path coordinates. That will work, but it's fragile - it will shift if you change timezones. Better is to use date strings like you do in the |
Upgrading Plotly.js from v.1.24 to v.1.30 resulted in
Failed: TypeError: Cannot read property 'append' of undefined
at drawShape (plotly.js:120051)
when SVG type 'path' Shape is used
To reproduce use the plotly-1.24.0.min.js library - the SVG shape shows.
Switch to plotly-1.30.0.min.js - TypeError: Cannot read property 'append' of undefined is thrown
https://codepen.io/dkolev8/pen/VzVywM
I found out that the last Plotly.js version that works with this SVG shape is v.1.24.1
Looks like the breaking changes are introduced in v.1.24.2
The text was updated successfully, but these errors were encountered: