Skip to content

Commit 5591242

Browse files
author
Elias Werner
committed
removee "init " message when plots are there
1 parent 0353ee1 commit 5591242

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{% for panel_id, data_json, layout_json, config_json in updates %}
2-
<script>Plotly.react("{{ panel_id }}", {{ data_json | safe }}, {{ layout_json | safe }}, {{ config_json | safe }});</script>
2+
<script>(function(){
3+
var el = document.getElementById("{{ panel_id }}");
4+
if (!el) return;
5+
var ph = el.querySelector(".jumper-live-initializing");
6+
if (ph) ph.remove();
7+
Plotly.react(el, {{ data_json | safe }}, {{ layout_json | safe }}, {{ config_json | safe }});
8+
})();</script>
39
{% endfor %}

0 commit comments

Comments
 (0)