plotly / plotly/plotly.R

Hover text do not show up if values does not exist in BOTH facet category

未關閉
#693 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

ggplotly
主要語言
R
星號
2.7k
分支
641
PR 合併指標
30 天內沒有已合併 PR

描述

Hover text exists in blue block

image

Hover text does not exist in either green or torquise block
image

Can't share the source data but what's happening is something like below:
Facility,ProductSubFamily,Measure,Qty
A,x,Commit,0.2
A,y,Request,0.9
A,d,Commit,0.8
A,d,Request,0.5
A,e,Commit,0.7
A,e,Request,0.3
...

        ggplot(data = dat,aes(x=Measure ,y=Quantity,fill = ProductSubFamily)) +
        geom_bar(stat = 'identity')+
        facet_grid(.~Facility,  space = "free", labeller = label_value,switch = 'both')+
        theme_bw()+
        theme(
          panel.grid.major.x = element_blank(),
          panel.border = element_blank(),
          legend.position='bottom',
          legend.title=element_blank(),
          axis.text.x=element_text(angle=30, hjust=1)
        )+
        scale_y_continuous(labels = percent)

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先使用等效的 facet 資料重現所提供的 ggplot 範例,重點關注在某個 facet 類別中缺少值的綠色和青綠色區塊。追蹤互動式圖表如何為分面長條圖產生 hover 文字。當這些區塊的 hover 文字能像藍色區塊一樣一致地顯示時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
r
領域
data-visualization
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。