-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Weird marker rendering glitches in scatter3d
#6491
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. |
What is your operating system? |
Confirmed. |
And this regression is related to the |
Sorry for the late reply, this is on win11 |
The symptom of this was very strange. Actually you should set <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.18.1.min.js"></script> which fixes the issue. |
scatter3d
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>
<meta charset="UTF-8">
<script src="https://cdn.plot.ly/plotly-2.18.1.min.js"></script>
</head>
<body>
<div id="57a4a499-302c-4550-8d8b-db70a1129fab">
<!-- Plotly chart will be drawn inside this DIV -->
</div>
<script type="text/javascript">
var renderPlotly_57a4a499302c45508d8bdb70a1129fab = function () {
var data = [
{
type: "scatter3d",
mode: "lines+markers",
x: [1, 4],
y: [2, 5],
z: [3, 6],
marker: {},
line: {},
},
];
var layout = {
width: 600,
height: 600,
scene: { camera: { projection: { type: "perspective" } } },
};
var config = { responsive: true };
Plotly.newPlot(
"57a4a499-302c-4550-8d8b-db70a1129fab",
data,
layout,
config
);
};
renderPlotly_57a4a499302c45508d8bdb70a1129fab();
</script>
</body>
</html> |
The following html file:
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:
The text was updated successfully, but these errors were encountered: