feat: 单图模式新增双Y轴 + 下载按钮缩小

- 图表模式新增双Y轴:左右两个坐标轴,量度可不同
  - 显示选项加"双Y轴"开关,启用后显示右轴名称输入
  - 每个系列在系列配置中可选择左轴/右轴
  - 后端 /api/chart 支持 dualYAxis + rightAxisSeries + rightAxisName(POST/GET 均可)
- 导出设置折叠栏下载按钮改小,避免挤占
This commit is contained in:
2026-08-19 12:59:46 +08:00
parent d9b3253fa0
commit 6a696daeb8
6 changed files with 122 additions and 10 deletions
+3
View File
@@ -45,6 +45,9 @@ Content-Type: application/json
| `leftLabel` | string | — | `"左侧"` | 左侧区域标签 |
| `rightLabel` | string | — | `"右侧"` | 右侧区域标签 |
| `splitStyle` | string | — | `"solid"` | 分割线样式:`solid` / `dashed` / `dotted` |
| `dualYAxis` | boolean | — | `false` | 启用双Y轴(左右量度不同) |
| `rightAxisSeries` | array | — | `null` | 右轴系列名列表,如 `["利润"]`(未列出的系列用左轴) |
| `rightAxisName` | string | — | `""` | 右轴名称 |
| `width` | number | — | `800` | 图片宽度(px |
| `height` | number | — | `500` | 图片高度(px |
| `pixelRatio` | number | — | `2` | 像素倍率(越大越清晰) |