plotly / plotly/plotly.js

[BUG]: Weird behavior x-axis with log scale

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

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

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

説明

Description

I have a scatter plot with 2 series, using layout.xaxis.type = 'log'.
I have two annotations, on which I applied log10 (cf. https://github.com/plotly/plotly.py/issues/2580).
One is properly showing, while the other one seems to misplace annotations and series.

I've noticed the following:

  1. Removing the annotations makes it work
  2. Removing 1 digit for precision for annotations makes it work. More generally, reducing precision makes it work, but I'm unsure if it's a matter of luck or something I can rely on.
Screenshots/Video

Please see codepens below.

Steps to reproduce

Failing example

Working example

Notes

None

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

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

はじめの一歩

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

調査の方向性

まず、失敗する CodePen の例と動作する CodePen の例を実行し、それぞれのアノテーションの精度と対数 x 軸の設定を比較します。plotly.js が対数 x 軸上でアノテーションと系列をどのように配置するかを追跡し、2 つの例の違いに注目します。失敗する例が、精度を下げることに依存せず、アノテーションと系列の両方を正しく配置し、既存の動作する挙動が維持されれば完了です。

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

評価

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

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

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