From dca26bac2c05fcfc9c7ed477b32a7fab1295a688 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 21 十月 2025 17:48:10 +0800
Subject: [PATCH] 2025.10.21 修改嫉妒报告生成逻辑
---
src/utils/chart/chart-option.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/utils/chart/chart-option.js b/src/utils/chart/chart-option.js
index 89a9380..2048725 100644
--- a/src/utils/chart/chart-option.js
+++ b/src/utils/chart/chart-option.js
@@ -161,7 +161,8 @@
tag,
animation = true,
defaultGrid,
- title
+ title,
+ customRange
) {
var fontSize = fGetChartFontSize();
const _grid = defaultGrid
@@ -248,10 +249,14 @@
minInterval: yMinInterval ? yMinInterval : 1,
intervel: 1,
min: function (value) {
- return Math.floor(value.min);
+ if (customRange != false) {
+ return Math.floor(value.min);
+ }
},
max: function (value) {
- return Math.ceil(value.max);
+ if (customRange != false) {
+ return Math.ceil(value.max);
+ }
}
},
{
--
Gitblit v1.9.3