selectize.js default behavior: remove label and allow for placeholder
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I would like to create an R Markdown document with > 1 plotly figure where points can be highlighted with the selectize.js widget. Here a reproducible example
---
title: Test
output: html_document
---
# wt vs mpg
```{r, message=FALSE, warning=FALSE}
library(plotly)
myData <- highlight_key(mtcars, ~rownames(mtcars))
myFig <- plot_ly(myData, x = ~wt, y = ~mpg)
highlight(myFig, selectize = TRUE)
```
# disp vs mpg
```{r, message=FALSE}
myData <- highlight_key(mtcars, ~rownames(mtcars))
myFig <- plot_ly(myData, x = ~disp, y = ~mpg)
highlight(myFig, selectize = TRUE)
```
Two Design improvements would be nice
- No label above selectize widget
- Placeholder text in the
<input>field of the widget
For the first problem I found a workaround using highlight_key(..., group = " "). However I need to define for each plot a new "invisible" group identifier otherwise the highlighting of the plots will be linked (i.e. if I highlight a car in one plot it will be highlighted in all plots). At the moment I use group = " ", group = " ", group = " ", and so on but this is stupid.
A workaround for the placeholder text was already described on Stack Overflow. But it does not work out of the box if there are multiple plotly figures in one R Markdown document.
Optimal solution would be to have two additional arguments in the highlight() function
label = NULLmakes sure that no label is plottedplaceholder = ""to define the placeholder in the selectize box.
Let me know what you think of it : )
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
R の highlight() エントリポイントと、提供された R Markdown の再現例で実行される selectize.js の動作から始めます。複数の plotly 図が選択状態をどのように共有するかを確認し、そのうえで、図ごとの選択を独立させたまま、ラベルの非表示とプレースホルダーテキストを設定可能にします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, r
- 領域
- data-visualization, frontend
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100