fix(ui): 阈值虚线贯穿整图(数据与 x 轴等长) 之前只给两个点,虚线只出现在最左两个刻度之间

This commit is contained in:
2026-08-05 10:07:38 +08:00
parent 8bcf063838
commit 65e907b7d8
+1 -1
View File
@@ -300,7 +300,7 @@
if (threshold > 0) {
datasets.push({
label: "阈值",
data: [threshold, threshold],
data: hist.map(() => threshold), // 与 x 轴等长,虚线水平贯穿整图
borderColor: thColor,
borderDash: [4, 4],
pointRadius: 0,