plotly / plotly/plotly.js

`anchor: 'free'` breaks fixed range with multiple axes

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

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

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

説明

This issue is already described in detail in the plotly forum. Here is just a short summary:

On a scatter plot with multiple (three) axes/traces each axis should have a range with a dynamic (autorange) lower bound and a fixed upper bound like this:

var layout = {
    // ...
    yaxis: {
        range: [null,200],
        autorange: 'min'
    },
    // ...

For 3 traces/axes, this is not working as expected! A complete SSCCE is available on codepen. The example works fine for two traces, but once a third trace is enabled (uncomment line 10), the fixed range stops working and both ends are scaled dynamically.

This issue seems only to exist if anchor is set to free for the axes. However, when using multiple axes, the anchor has to be free for useful automatic axes-positioning.

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

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

はじめの一歩

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

調査の方向性

リンクされている CodePen SSCCE から始め、2 軸の場合と 3 軸の場合を比較します。anchor: 'free' と range: [null, 200] を autorange: 'min' とともに使用する軸に注目してください。3 軸すべてで固定された上限が有効なまま、下限が動的なままであれば完了です。

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

評価

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

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

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