plotly / plotly/plotly.js

Bad label positioning in pie-charts

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

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

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

説明

Depending on the number of categories and the amount of text in labels, the positioning of labels in pie-charts might be unsatisfying. The labels might overlap the title/subtitle. Here is an example image showing the problem:
Image
This codepen contains relevant code for reproducing the issue.

There is also a related issue, which suggests adding an optional space between title and plot. But as this space would definitively depend on the actual data, I'd say plotly should handle this for the user automatically.

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

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

はじめの一歩

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

調査の方向性

リンクされているCodePenの再現例から始め、関連するissue #4932と比較します。カテゴリ数とラベルの長さを変えた場合の円グラフのラベルレイアウトの挙動を追跡し、そのうえで、ラベルがタイトルやサブタイトルと重ならなくなっていることを、読みやすい配置を維持しながら確認します。

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

評価

技術スタック
javascript
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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