簡體   English   中英

繪制離線 html 圖,將其嵌入到 Dash 中

[英]Plotly offline html graph, embedding it into Dash

我在 Plotly 中創建了一個 3D 圖形並將其保存為 html,如下所示:

plotly.offline.plot(fig, filename='3D.html') 

我還在 Dash 中創建了一個儀表板,但是我的問題是如何將“3D.html”添加到我的儀表板? (3D.html保存在本地)

解決方案是使用

html.div([ html.Iframe(src.get_asset_url("plotly3D.html)])

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM