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