plotly / plotly/plotly.js

Allow style editing of graph legend labels

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

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

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

説明

Thanks so much for your interest in Dash!

The feature has already been tangentially discussed here: https://community.plotly.com/t/scatter-plot-how-to-wrap-legends-text-when-legend-text-is-too-long/4767/7

Is your feature request related to a problem? Please describe.
I have traces that have very long names. It's problematic because the legend text does not word wrap and so it squishes the graph.
Here's an example: https://postimg.cc/VSq0bQXW

Describe the solution you'd like
Please allow for more stylistic control over legend text, particularly allowing for textoverflow control, like word wrap, hidden+ellipsis, hover tooltip etc.

Describe alternatives you've considered
I had to resorted to displaying a hashmap to translate the long text into a shorter signature.

Additional context
I've had it where the text is really long that the actual graph is completely unreadable.

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

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

はじめの一歩

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

調査の方向性

まず、非常に長い名前の traces で問題を再現し、要求されている凡例の動作について、リンク先のコミュニティディスカッションを確認してください。どの overflow オプションをサポートすべきかを明確にし、そのうえで、長いラベルでもグラフの可読性が保たれ、選択した動作がユーザーに表示されることを確認してください。

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

評価

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

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

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