Use PlotlyJS's integration with WebIO
This commit is contained in:
parent
71fd38fe26
commit
52da386df1
@ -39,8 +39,7 @@ _show(io::IO, ::MIME"text/html", plt::Plot{PlotlyJSBackend}) = write(io, standal
|
|||||||
_display(plt::Plot{PlotlyJSBackend}) = display(plotlyjs_syncplot(plt))
|
_display(plt::Plot{PlotlyJSBackend}) = display(plotlyjs_syncplot(plt))
|
||||||
|
|
||||||
function PlotlyJS.WebIO.render(plt::Plot{PlotlyJSBackend})
|
function PlotlyJS.WebIO.render(plt::Plot{PlotlyJSBackend})
|
||||||
plt_html = sprint(show, MIME("text/html"), plt)
|
return PlotlyJS.WebIO.render(plotlyjs_syncplot(plt))
|
||||||
return PlotlyJS.WebIO.render(PlotlyJS.WebIO.dom"div"(innerHTML=plt_html))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function closeall(::PlotlyJSBackend)
|
function closeall(::PlotlyJSBackend)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user