plotly / plotly/plotly.R

Sunburst Plot Labels Disappear after expanding then shrinking

オープン
#2,161 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

When a sunburst plot is expanded and then un-expanded some labels disappear. Reprex is attached below.

Labels Disappearing (RStudio Viewer)
The Escherichia coli label disappears. Also reproduced this error in safari (but only when Escherichia was expanded then de-expanded)

https://user-images.githubusercontent.com/73202525/179348925-cbebd033-50ef-43b8-84d7-3fdd4dfb0f45.mov

library(plotly)
#> Loading required package: ggplot2
#> 
#> Attaching package: 'plotly'
#> The following object is masked from 'package:ggplot2':
#> 
#>     last_plot
#> The following object is masked from 'package:stats':
#> 
#>     filter
#> The following object is masked from 'package:graphics':
#> 
#>     layout

fig <- plot_ly(
  labels = c("Escherichia", "Escherichia coli", "Salmonella", "Salmonella enterica"),
  parents = c("Blasted Sequences", "Escherichia", "Blasted Sequences", "Salmonella"),
  values = c(0, 50, 0, 20),
  type = "sunburst"
)

sessionInfo()
#> R version 4.2.0 (2022-04-22)
#> Platform: x86_64-apple-darwin17.0 (64-bit)
#> Running under: macOS Big Sur/Monterey 10.16
#> 
#> Matrix products: default
#> BLAS:   /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
#> 
#> locale:
#> [1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] plotly_4.10.0 ggplot2_3.3.6
#> 
#> loaded via a namespace (and not attached):
#>  [1] pillar_1.7.0      compiler_4.2.0    highr_0.9         R.methodsS3_1.8.2
#>  [5] R.utils_2.11.0    tools_4.2.0       digest_0.6.29     viridisLite_0.4.0
#>  [9] jsonlite_1.8.0    evaluate_0.15     lifecycle_1.0.1   tibble_3.1.7     
#> [13] gtable_0.3.0      R.cache_0.15.0    pkgconfig_2.0.3   rlang_1.0.4      
#> [17] reprex_2.0.1      DBI_1.1.3         cli_3.3.0         rstudioapi_0.13  
#> [21] crosstalk_1.2.0   yaml_2.3.5        xfun_0.31         fastmap_1.1.0    
#> [25] httr_1.4.3        dplyr_1.0.9       withr_2.5.0       styler_1.7.0     
#> [29] stringr_1.4.0     knitr_1.39        htmlwidgets_1.5.4 generics_0.1.3   
#> [33] fs_1.5.2          vctrs_0.4.1       tidyselect_1.1.2  grid_4.2.0       
#> [37] data.table_1.14.2 glue_1.6.2        R6_2.5.1          fansi_1.0.3      
#> [41] rmarkdown_2.14    tidyr_1.2.0       purrr_0.3.4       magrittr_2.0.3   
#> [45] scales_1.2.0      ellipsis_0.3.2    htmltools_0.5.2   assertthat_0.2.1 
#> [49] colorspace_2.0-3  utf8_1.2.2        stringi_1.7.6     lazyeval_0.2.2   
#> [53] munsell_0.5.0     crayon_1.5.1      R.oo_1.25.0

Created on 2022-07-16 by the reprex package (v2.0.1)

Similar issue described here: https://github.com/plotly/plotly.js/issues/5547

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された R reprex を plotly 4.10.0 で実行し、sunburst を展開して縮小した後に Escherichia coli のラベルが表示されなくなる問題を再現します。関連する plotly.js issue 5547 と動作を比較します。RStudio Viewer と Safari で、操作後もラベルが表示されたままになれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, r
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。