Pie chart not displaying when plotting big and small numbers at the same time.
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
When I plot a piechart, if there is a number much larger than another one (by a factor 100 000 000), no piechart is displayed.
If I then unselect one of the value, the piechart is displayed.
If i reduce the factor between the two numbers, the piechart is displayed as well.
Here is a example:
https://jsfiddle.net/3qr50za6/
var data = [
{
"type": "pie",
"values": [
"1",
"1e-8",
],
"labels": [
"Number",
"Much smaller number",
],
}
];
var layout = {
"title": "Small and big numbers issues",
"showlegend": true,
width: 1000,
height: 400
};
Plotly.newPlot('myDiv', data, layout);
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされたjsfiddleの再現とPlotly.newPlotのエントリーポイントから始め、値の大きさが大きく異なる場合に円グラフの値がどのように処理されるかを追跡します。[1, 1e-8]で失敗を確認し、issueに記載された動作するケースと比較します。両方の値を選択した状態でグラフが描画され、見つかった場合は関連する既存のテストでリグレッションがカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100