plotly / plotly/plotly.js

add formatting options for exponentformat: "power" to provide normalised scientific notation

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

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

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

説明

Hi,

Setting exponentformat to "power" can sometimes display numbers in a format: 0.a × 10^b . We teach the normalised scientific notation (https://en.wikipedia.org/wiki/Scientific_notation#Normalized_notation), in which the number before the decimal place must be greater than or equal to 1, and less than 10.

I couldn't see a way of setting Plotly to use this notation ("tickformat" options don't seem to expose this either), and was wondering whether it could be implemented?

Thanks for your time (and for Plotly, which is great!)

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

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

はじめの一歩

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

調査の方向性

まず、Plotly が exponentformat オプションをどのように処理し、tickformat がどのように適用されるかを追跡します。既存の "power" 出力を、仮数が 1 以上 10 未満となる正規化された科学表記と比較します。文書化されたフォーマットオプションによってその表記が一貫して生成され、代表的な値を対象とするテストが含まれていれば完了です。

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

評価

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

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

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