From 08ffcf9d7ffafaa82d8de7f9b5fcfdb49e9c3688 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 05 十一月 2025 17:33:54 +0800
Subject: [PATCH] 动态溯源 1. 修复CO因子文本没有正常显示的问题;
---
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