Word wrap for long labels
オープン
まだ誰も着手していません。
feature
P3
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
Is there an option to reflow long text labels?
- For example, a long label without reflow (plotly tries to autocorrect by slanting the labels instead of reflowing the text, but it still doesn't fit)
- And a simple manual fix with a few
<br>in the code that I'd like to have Plotly be able to do with a simplewrap: trueoption
JS code for this chart
var data = [{
// first screenshot labels
//x: ['giraffes', 'orangutans', "Very Long Text Label That Doesn't Fit Properly"],
// second screenshot labels
x: ['giraffes', 'orangutans', "Very Long<br>Text Label That<br>Doesn't Fit<br>Properly"],
y: [20, 14, 23],
type: 'bar'
}]
Plotly.newPlot('PlotlyDivSimple', data, {})
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue には Plotly.newPlot の例がありますが、リポジトリのファイルもテストも指定されていません。まず、Plotly.newPlot がカテゴリラベルをどのようにレイアウトして描画するかを追跡し、次に関連するラベルテストを特定します。長いラベルを要求どおりに再折り返しし、明示的な br の改行を保持する wrapping オプションが実装されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- data-visualization
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100