Leverage react component/editor for interactive code generation
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Programmatically placing annotations/shapes/images etc is difficult. Ideally we'd have some sort of GUI to assist in generating the relevant code. Plotly cloud does offer a solution, but there are two main issues:
- Code generation works on the JSON-level, meaning any high-level R code gets lost.
- The UI is complex -- it tries to do everything plotly.js can do without making common things easy.
https://github.com/plotly/react-chart-editor was recently open-sourced and could provide infrastructure for generating "focused" and locally-rendered GUIs that could help you generate code for these use-cases. For example, something like:
library(plotly)
qplot(1:10) %>%
ggplotly() %>%
layout_edit("annotations")
Could pop-up a shiny gadget wrapper around the react editor specifically for adding and/or editing existing annotation(s). It seems likely that we could retain the high-level (input) code and add the relevant code necessary to recreate the manual edits:
qplot(1:10) %>%
ggplotly() %>%
add_annotations(
text = "My label",
x = 0,
y = 1,
...
)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンクされている react-chart-editor プロジェクトと、この issue にある R の例を読み、特に提案されている layout_edit() と add_annotations() のフローを確認します。この issue では、リポジトリのファイル、テスト、受け入れ基準が指定されていません。完了とするには、焦点を絞った GUI に合意し、高レベルの R コードを保持し、生成された編集をどのように検証するかを定義する必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, r, react
- 領域
- data-visualization, frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100