plotly / plotly/plotly.R

`ggplotly` modifies values before creating tooltip

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

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

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

When drawing a geom_bar plot with negative values, a tooltip will display them as positive instead.

library(ggplot2)
library(plotly)
dataset <- data.frame(x = 1:2, y = 1:2 - 3, z = 1:2 - 3) # z == y
p1 <- ggplot(dataset, aes(x, y, z = z)) + geom_bar(stat = "identity")
ggplotly(p1, tooltip = c("y", "z"))

Even though y and z contain the same negative values, only z is displayed as negative in the tooltip:

Screen Shot 2020-09-12 at 4 53 06 PM

This may be related to #560, #616 or #874. It was reported on StackOverflow here: https://stackoverflow.com/q/63862157/2554330

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

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

はじめの一歩

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

調査の方向性

まず、geom_bar と tooltip フィールド y および z を使用した再現可能な ggplotly の例を実行し、次に、ggplotly が tooltip を構築する前にプロットデータをどのように変換するかを追跡します。y と z の負の値が負のまま維持され、両方の tooltip に一貫して表示されれば完了です。

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

評価

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

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

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