Can multiple y-axes share a single x-axis and be arranged vertically?
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
首先检查 ECharts 中现有的 xAxis、yAxis 和 series 选项是如何处理的。将该行为与提议的共享 x 轴、垂直排列的 y 轴项、同步标记以及按轴分组 series 进行比较。在不使用自定义 chart.render 矩形和文本的情况下,实现所请求的布局和交互即表示完成。
由索引模型根据 Issue 内容生成。
描述
What problem does this feature solve?
This chart is implemented using Highcharts12, where the height of each yAxis is calculated as plotHeight - (Vpadding * (item.length - 1)) / item.length. The space between each yAxis is used to draw the legend. Here, I achieved this by drawing rectangles and text using chart.render. I would like to ask if ECharts can achieve such graphic effects?
What does the proposed API look like?
option = {
xAxis: [
{
id: 'xAxis-1'
},
{
id: 'xAxis-1'
}
],
yAxis: [
{
id:'group1',
type: 'multiple',
items: [
{
xAxisId: 'xAxis-1',
top:0,
height'45%',
padding:'5%'
},
{
xAxisId: 'xAxis-1',
top:'50%',
height'45%',
padding:'5%'
},
{
//...
}
]
}
],
series: [
{
xAxisId: 'xAxis-1',
group: 'group1',
data: []
},
{
xAxisId: 'xAxis-1',
group: 'group1',
data: []
},
{
xAxisId: 'xAxis-1',
group: 'group2',
data: []
}
]
};
----PS: This options is how I imagine it 😀.
- 主要语言
- TypeScript
- 星标
- 67.7k
- 派生
- 19.9k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/echarts 的其他 Issue
-
[Bug] String formatter templates only replace the first occurrence of `{a}`/`{b}`/`{c}`可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭en pending
难度 2/5 1-3 小时 新手友好度 80/100
-
[Bug] Inverse axis collapses the grid with outerBoundsContain when a tick is near the axis edge可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭en pending
难度 2/5 1-3 小时 新手友好度 82/100
-
en pending
难度 2/5 1-3 小时 新手友好度 78/100
-
en pending
难度 2/5 1-3 小时 新手友好度 78/100
-
[Bug] The zoom cursor in the toolbox area is incorrect可能已有人在做 @waterWang 于 98 天前认领。 未关闭bug en pending
难度 2/5 1-3 小时 新手友好度 70/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
pollen-robotics/reachy-mini-desktop-app#341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
mike-north/AgentMonitors#648 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/ui#700 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复