Disappearing points
未關閉
還沒有人認領這個 Issue。
- 主要語言
- R
- 星號
- 2.7k
- 分支
- 641
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I'm using toWebGL to generate a large plotly in my R Shiny app. But when I switch tabs in the app, the points on the plot disappear.
Reproducible example below. Switch between tabs and you'll see points disappear
shinyApp(
dashboardPage(
dashboardHeader(title = "Example"),
dashboardSidebar(
sidebarMenu(
menuItem(
text = 'TAB1',
tabName = 'tab_1'
),
menuItem(
text = 'TAB2',
tabName = 'tab_2'
)
)
),
dashboardBody(
tabItems(
tabItem(
tabName = 'tab_1'
),
tabItem(
tabName = 'tab_2',
box(
plotlyOutput(
"myplot"
)
)
)
)
)
),
function(input, output, session) {
output$myplot <- renderPlotly(expr = {
toWebGL(plot_ly(mtcars, x = ~mpg, y = ~wt))
})
}
)
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從可重現的 R Shiny 範例開始,重點關注 tabItem 中的 toWebGL 呼叫和 plotlyOutput。透過在分頁之間切換來重現問題,然後追蹤分頁隱藏並重新顯示時 renderPlotly 與 WebGL 圖表的行為;當在分頁之間切換後這些點仍然可見時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- r
- 領域
- data-visualization, frontend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100