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

fix plotly resizing

parent f27ec836
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,8 @@
<script>
window.addEventListener('load', function() {
Plotly.d3.json('/{{plotly_url}}', function(error, fig) {
MathJax.Hub.Queue(
["setRenderer",MathJax.Hub,"SVG"]
);
Plotly.plot('{{div_id}}', fig.data, fig.layout);
MathJax.Hub.Queue(
["setRenderer",MathJax.Hub,"HTMLCSS-output"]
Plotly.plot('{{div_id}}', fig.data, fig.layout).then(
function(value) {Plotly.relayout('{{div_id}}', {height: ' '})}
);
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment