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
+7
View File
@@ -100,8 +100,15 @@ C, 20, 30, 40</pre>
<label><input type="checkbox" id="showLabel" onchange="updateChart()"> 数据标签</label>
<label><input type="checkbox" id="stackMode" onchange="updateChart()"> 堆叠模式</label>
<label><input type="checkbox" id="smoothLine" checked onchange="updateChart()"> 平滑曲线</label>
<label><input type="checkbox" id="dualAxis" onchange="onDualAxisChange()"> 双Y轴</label>
</div>
</div>
<div class="config-group" id="rightAxisGroup" style="display:none;">
<label>右轴名称(量度不同)</label>
<input type="text" id="rightAxisName" placeholder="如:利润(万元)" oninput="updateChart()">
<p class="hint-text">在下方「系列配置」中可指定每个系列用左轴/右轴</p>
</div>
</div>
<!-- 表格配置区 -->