Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 10e2401 into a1311e5
Browse files Browse the repository at this point in the history
fonsp authored May 18, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents a1311e5 + 10e2401 commit 622fe1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backends/plotly.jl
Original file line number Diff line number Diff line change
@@ -953,8 +953,7 @@ function plotly_html_body(plt, style = nothing)
<div id=\"$(uuid)\" style=\"$(style)\"></div>
<script>
$(requirejs_prefix)
PLOT = document.getElementById('$(uuid)');
Plotly.plot(PLOT, $(plotly_series_json(plt)), $(plotly_layout_json(plt)));
$(js_body(plt, uuid))
$(requirejs_suffix)
</script>
"""
@@ -963,7 +962,7 @@ end

function js_body(plt::Plot, uuid)
js = """
PLOT = document.getElementById('$(uuid)');
var PLOT = document.getElementById('$(uuid)');
Plotly.plot(PLOT, $(plotly_series_json(plt)), $(plotly_layout_json(plt)));
"""
end

0 comments on commit 622fe1d

Please sign in to comment.