Ability to make points or bar sections editable (ideally with drag and drop)
オープン
まだ誰も着手していません。
cs
feature
P3
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
Something like this:
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
src/plot_api/plot_config.js の editable-shapes 設定から始め、要求されている点と棒セクションの編集とその動作を比較します。位置の変更が基になるトレースをどのように更新し、restyle または relayout イベントを発生させ、グラフで利用可能なカテゴリ値と棒の高さをどのように尊重するかを定義します。指定された制約のもとでこれらのインタラクションが機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- data-visualization
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100