Skip to content

Commit

Permalink
Use PlotlyJS's integration with WebIO
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshtch committed Mar 27, 2021
1 parent 71fd38f commit 52da386
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backends/plotlyjs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ _show(io::IO, ::MIME"text/html", plt::Plot{PlotlyJSBackend}) = write(io, standal
_display(plt::Plot{PlotlyJSBackend}) = display(plotlyjs_syncplot(plt))

function PlotlyJS.WebIO.render(plt::Plot{PlotlyJSBackend})
plt_html = sprint(show, MIME("text/html"), plt)
return PlotlyJS.WebIO.render(PlotlyJS.WebIO.dom"div"(innerHTML=plt_html))
return PlotlyJS.WebIO.render(plotlyjs_syncplot(plt))
end

function closeall(::PlotlyJSBackend)
Expand Down

0 comments on commit 52da386

Please sign in to comment.