From 4097cc9ad6c60bbb5e9864d3f54a37cfbb40026e Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 05 三月 2025 15:31:28 +0800
Subject: [PATCH] 临时:路网版本

---
 src/model/Factor.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/model/Factor.js b/src/model/Factor.js
index 3af0452..b9983b1 100644
--- a/src/model/Factor.js
+++ b/src/model/Factor.js
@@ -60,7 +60,8 @@
   this.standardMin = -1; //鐩戞祴鍥犲瓙绫诲瀷瀵瑰簲鐨勬爣鍑嗘渶灏忓��
   this.standardMax = -1; //鐩戞祴鍥犲瓙绫诲瀷瀵瑰簲鐨勬爣鍑嗘渶澶у��
 
-  this.legendType = Legend.S_TYPE; //鍥句緥妯″紡
+  // this.legendType = Legend.S_TYPE; //鍥句緥妯″紡
+  this.legendType = Legend.D_TYPE; //鍥句緥妯″紡
 
   if (options != undefined) {
     this.datas = options.datas;
@@ -127,7 +128,7 @@
     this.heights = [];
     this.colors = [];
     this.datas.forEach((d) => {
-      const h = getFactorHeight(d.factorId, d.factorData, [this.min, this.max]);
+      let h = getFactorHeight(d.factorId, d.factorData, [this.min, this.max]);
       if (d.factorData == -1) {
         h = -1;
       }

--
Gitblit v1.9.3