Plotly not showing subgroup identificator in horizontal version
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
Using the horizontal version, Plotly doesn't show the subgroup identification. I thought if my code was wrong, but no, because in vertical mode, it shows perfectly. It can be fixed setting the left margin.
trace1 = go.Bar(x = [ 5, 7, 9, 2 ],
y = [["Orgao A", "Orgao A", "Orgao B", "Orgao B" ],
["Empregado", "Empresa", "Empregado", "Empresa"]],
orientation="h",
name="Deferido" )
trace2 = go.Bar(x = [ 3, 5, 8, 6 ],
y = [["Orgao A", "Orgao A", "Orgao B", "Orgao B" ],
["Empregado", "Empresa", "Empregado", "Empresa"]],
orientation="h",
name="Indeferido" )
layout = go.Layout( barmode="stack", barnorm="percent" ) #, margin=dict(l=200) #this fix the problem
fig = go.Figure( data = [ trace1, trace2 ], layout=layout )
iplot( fig )

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先运行提供的 Python 示例,并比较水平模式和垂直模式,包括左边距 workaround。跟踪负责水平分组条形图中子组标签的 plotly.js 布局路径。完成的标准是:无需手动增大左边距即可渲染子组标识,并且该示例具有回归覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100