Skip to content
Snippets Groups Projects
Verified Commit 5d15168a authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

fix plotly layout

parent 3131c968
Branches
No related tags found
1 merge request!114Theme update
Pipeline #87246 passed
This commit is part of merge request !114. Comments created here will be created in the context of that merge request.
......@@ -116,9 +116,7 @@ window.MathJax = {
document$.subscribe(() => {
for (const div of document.getElementsByClassName("plotlyPlaceholder")) {
Plotly.d3.json(div.getAttribute("data-plotlySource"), function(error, fig) {
Plotly.plot(div.getAttribute("id"), fig.data, fig.layout).then(
function(value) {Plotly.relayout(div.getAttribute("id"), {height: ' '})}
)
Plotly.plot(div.getAttribute("id"), fig.data, fig.layout)
}
);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment