Bullet Charts: Indicator Delta Reference shows dash symbol when value and reference are equal
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I am creating bullet charts using the guidance found here: https://plot.ly/r/bullet-charts/
All is working as expected, however when the value and reference values are the same, the rendered plot shows no difference. Just a straight line. I should say 0 as there's a difference of zero.
Example below with straight line for difference rendered.
plot_ly(
type = "indicator",
mode = "number+gauge+delta",
gauge = list(shape = "bullet"),
delta = list(reference = .333, valueformat='%', relative=FALSE,position='right'),
value = .33,
domain = list(x = c(0, 1), y = c(0, 1)),
title= list(text = "Profit"),
height = 150)
However, if I add an additional digit to the reference or value as shown below, a percent difference of -0 or +0 is shown.
plot_ly(
type = "indicator",
mode = "number+gauge+delta",
gauge = list(shape = "bullet"),
delta = list(reference = .333, valueformat='%', relative=FALSE,position='right'),
value = .33,
domain = list(x = c(0, 1), y = c(0, 1)),
title= list(text = "Profit"),
height = 150)
plot_ly(
type = "indicator",
mode = "number+gauge+delta",
gauge = list(shape = "bullet"),
delta = list(reference = .33, valueformat='%', relative=FALSE,position='right'),
value = .333,
domain = list(x = c(0, 1), y = c(0, 1)),
title= list(text = "Profit"),
height = 150)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず R の bullet-chart の例を再現し、plotly.R におけるインジケーターのデルタ描画パスを追跡します。issue ではソースファイルもテストも指定されていません。関連するカバレッジを特定し、値と参照値が等しい場合にデルタがゼロになることを示す回帰チェックを追加してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100