plotly / plotly/plotly.js

Ternary plot missing `automargin` option in `layout.ternary`

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

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

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

説明

Currently the Ternary plot: https://plotly.com/javascript/ternary-plots/
doesn't have automargin option in each axis in the layout.ternary: https://plotly.com/javascript/reference/layout/ternary/

Therefore, it may happen that the title of the axis is cropped, not only in the case of long titles, but more often due to smaller screen sizes (or figure sizes).

This is more likely for the title text in axes B and C located in the bottom being cropped, e.g.:

Image

Image

Titles are being cropped!

Demo example: https://codepen.io/Lexachoc/pen/MYgVGoW

Image
The title in axis B has no margin to adjust the position and is therefore cropped.

It would be very helpful to add this option (or a similar one to achieve the same thing, avoiding the title text being cropped) to the ternary plot.

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

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

はじめの一歩

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

調査の方向性

layout.ternary のリファレンスとリンクされている ternary plot の例から始め、軸タイトルとマージンがどのように処理されているかを追ってください。ternary 軸が automargin オプションまたは同等の動作を備え、特に軸 B と C のタイトルが小さい図で切り取られなくなれば、作業は完了です。

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

評価

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

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

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