plotly / plotly/plotly.js

Inconsistent behavior when providing an array of marker sizes in "markers" mode on scatter3D

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

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

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

説明

When an array of marker sizes is provided in "markers" mode in scatter3D, the displayed size of the markers is half the size displayed when a single value is provided instead of an array. For example, if there are two points on a trace and "[20, 20]" is provided, the displayed markers are displayed at exactly the same size as if only "10" were provided.

Additionally, when you provide an array with fewer elements than points the trace have (for example, a trace with 3 points that is given the array "[20, 20]"), the remaining point markers are sized by default to 10. Maybe that's the expected behavior, but in other charts like scatter2D or scatterpolar the remaining points become hidden (size 0), so I thought it was worth mentioning that too.

Codepen: https://codepen.io/neosdkov/pen/abMrpRo

(not related but thank you all for your great work! I've been using plotly for a few months now and it's just amazing!)

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

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

はじめの一歩

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

調査の方向性

リンクされた CodePen の scatter3D マーカーサイズ設定のケースを再現します。スカラーのサイズと、同じ値を持つサイズ配列を比較し、その後、点の数より短い配列を試します。scatter3D マーカーのエントリポイントを追跡し、配列の値がスカラーによるサイズ設定と一致すること、また短い配列の挙動が意図されたものであり、報告された期待と一貫していることを確認します。

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

評価

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

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

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