plotly / plotly/plotly.js

Ability to make points or bar sections editable (ideally with drag and drop)

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

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

cs feature P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

Something like this:
Image

Similar to what is possible with shapes when editable=True is set in the config: https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js#L47

Changing the position of the point (or bar section) should:

  • modify the underlying traces
  • trigger an event like restyle or relayout
  • be restricted based on the current state of the graph. In the example of the screenshot, it should only be possible that the bar region is moved to "China" or "Canada" and their respective x positions, since those are the available values. Similarly, the y position would be determined by the current "height" of the bar the region is moved to.

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

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

はじめの一歩

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

調査の方向性

src/plot_api/plot_config.js の editable-shapes 設定から始め、要求されている点と棒セクションの編集とその動作を比較します。位置の変更が基になるトレースをどのように更新し、restyle または relayout イベントを発生させ、グラフで利用可能なカテゴリ値と棒の高さをどのように尊重するかを定義します。指定された制約のもとでこれらのインタラクションが機能すれば完了です。

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

評価

技術スタック
javascript
領域
data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

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

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