plotly / plotly/plotly.js

[FEATURE]: Provide a way to enable aligning the 0-point of overlaid axes

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

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

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

説明

I have a plotly chart with lines and columns with both negative and positive values. The 0 on both y axes is at a different spot. It would be nice if there were an option in layout.yaxis where one could align the 0s without having to calculate the domain.

Here is a codepen illustrating the issue: https://codepen.io/mtadams007/pen/ByNgyjJ?editors=0010

The solution proposed in https://github.com/plotly/plotly.js/issues/1845#issuecomment-312896241 does not work as in that example both axes start with 0 and have no negative numbers.

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

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

はじめの一歩

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

調査の方向性

リンクされた CodePen から始めて、負の値と正の値を持つ重ね合わせた y 軸の異なるゼロ位置を再現します。issue #1845 の以前の議論と layout.yaxis の動作を確認してください。明示的なオプションによって手動でドメインを計算せずに両方の軸がゼロで揃い、実証されたケースがカバーされれば作業は完了です。

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

評価

技術スタック
javascript
領域
data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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