Allow showlegend for 3d Surface plots
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
For Surface plots it is currently not possible to show the legend.
If layout.itemclick and layout.doubleclick would default to a radio-button-like behavior (see #6617 ) for Surface plots, the legend would be very useful.
For use-case see my antenna-plot at
https://blog.runtux.com/content/2022/12-el-1deg-plot3d.html
source at https://github.com/schlatterbeck/plot-antenna
This currently uses a workaround: It adds another Scatter plot and ties the legend items of the Surface plot to the legend items of the Scatter plot using legendgroup. Then we can make the legend visible.
Not allowing showlegend with Surface plots seems an arbitrary restriction.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Surface プロットで showlegend がどのように扱われ、layout.itemclick と layout.doubleclick がどのように定義されているかを追跡し、提案されているラジオボタンのような動作について issue #6617 を使用します。現在の Surface の動作を、legendgroup を使用する Scatter の回避策と比較します。Surface の凡例項目を表示でき、意図したクリック動作に一貫して反応すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- data-visualization
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100