fix(ui): 阈值虚线贯穿整图(数据与 x 轴等长) 之前只给两个点,虚线只出现在最左两个刻度之间
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@
|
|||||||
if (threshold > 0) {
|
if (threshold > 0) {
|
||||||
datasets.push({
|
datasets.push({
|
||||||
label: "阈值",
|
label: "阈值",
|
||||||
data: [threshold, threshold],
|
data: hist.map(() => threshold), // 与 x 轴等长,虚线水平贯穿整图
|
||||||
borderColor: thColor,
|
borderColor: thColor,
|
||||||
borderDash: [4, 4],
|
borderDash: [4, 4],
|
||||||
pointRadius: 0,
|
pointRadius: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user