Extend multicategory axes to more than 2 levels
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
This is a request to add nested categorical axes. These are often used in "variability charts", examples of which can be seen here.
There's a few ways this could be implemented in practice. Rather than passing an array of values for y the user could pass an object like:
{
"popcorn": ["gourmet", "gourmet", "plain", ...]
"batch": ["large", "small", "large", ...]
...
}
or simply pass a category name / number (1 or "gourmet-large-little") and pass the nesting information for the axis in the layout section.
(I was surprised not to find an open issue for this -- it's possible that there is one but I didn't search using the right terms).
Edit: There is some limited support for this as shown here but it involves hacking the axis together by hand and would be difficult to use in an automated manner.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看链接的 Plotly 轴文档和变异性图表示例中所描述的现有限制性子类别轴支持。明确 API 应接受嵌套类别数组,还是接受布局级嵌套元数据,然后追踪当前 multicategory 轴的行为。当嵌套分类轴无需手动构建即可自动工作时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100