riku
2025-03-05 4097cc9ad6c60bbb5e9864d3f54a37cfbb40026e
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;
      }