You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Weird marker rendering glitches in scatter3d #6491
<!DOCTYPE html><html><head><scriptsrc="https://cdn.plot.ly/plotly-2.18.1.min.js"></script></head><body><divid="57a4a499-302c-4550-8d8b-db70a1129fab"><!-- Plotly chart will be drawn inside this DIV --></div><scripttype="text/javascript">varrenderPlotly_57a4a499302c45508d8bdb70a1129fab=function(){vardata=[{type: "scatter3d",mode: "lines+markers",x: [1,4],y: [2,5],z: [3,6],marker: {},line: {},},];varlayout={width: 600,height: 600,scene: {camera: {projection: {type: "perspective"}}},};varconfig={responsive: true};Plotly.newPlot("57a4a499-302c-4550-8d8b-db70a1129fab",data,layout,config);};renderPlotly_57a4a499302c45508d8bdb70a1129fab();</script></body></html>
leads to weird marker rendering bugs on chrome and edge(chromium), but not on firefox. Using any plotl.js version <2.17.0 fixes the issue. It is not reproducible for me via codepen though, so here are three browser window snapshots of this file:
changed the title [-]Weird marker rendering glitches in 3D charts on edge/chrome[/-][+]Weird marker rendering glitches in `scatter3d`[/+]on Feb 17, 2023
Actually you should set charset to utf-8 in your script tag
Thanks for this, using a meta tag for the whole page also works, which is recommended to do by the w3c anyways, so that's what i will do as a workaround with additional benefits.
<!DOCTYPE html><html><head><metacharset="UTF-8"><scriptsrc="https://cdn.plot.ly/plotly-2.18.1.min.js"></script></head><body><divid="57a4a499-302c-4550-8d8b-db70a1129fab"><!-- Plotly chart will be drawn inside this DIV --></div><scripttype="text/javascript">varrenderPlotly_57a4a499302c45508d8bdb70a1129fab=function(){vardata=[{type: "scatter3d",mode: "lines+markers",x: [1,4],y: [2,5],z: [3,6],marker: {},line: {},},];varlayout={width: 600,height: 600,scene: {camera: {projection: {type: "perspective"}}},};varconfig={responsive: true};Plotly.newPlot("57a4a499-302c-4550-8d8b-db70a1129fab",data,layout,config);};renderPlotly_57a4a499302c45508d8bdb70a1129fab();</script></body></html>
Activity
archmoj commentedon Feb 17, 2023
Thanks for the report.
archmoj commentedon Feb 17, 2023
What is your operating system?
archmoj commentedon Feb 17, 2023
Confirmed.
Please note that regression is from the
v2.17.0release.archmoj commentedon Feb 17, 2023
And this regression is related to the
webpackPR: #6355.kMutagene commentedon Feb 17, 2023
Sorry for the late reply, this is on win11
archmoj commentedon Feb 17, 2023
The symptom of this was very strange.
Actually you should set
charsettoutf-8in yourscripttag i.e.which fixes the issue.
[-]Weird marker rendering glitches in 3D charts on edge/chrome[/-][+]Weird marker rendering glitches in `scatter3d`[/+]kMutagene commentedon Feb 18, 2023
Thanks for this, using a meta tag for the whole page also works, which is recommended to do by the w3c anyways, so that's what i will do as a workaround with additional benefits.
use charset utf8 in generated html (plotly/plotly.js#6491)