Hover text do not show up if values does not exist in BOTH facet category
未关闭
还没有人认领这个 Issue。
ggplotly
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hover text exists in blue block

Hover text does not exist in either green or torquise block

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)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用等效的 facet 数据复现所提供的 ggplot 示例,重点关注在某个 facet 类别中缺少值的绿色和青绿色块。跟踪交互式图表如何为分面柱状图生成 hover 文本。当这些块的 hover 文本能够像蓝色块一样一致地显示时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100