rapid-spreadjs 1.0.107 → 1.0.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -4678,6 +4678,11 @@ const EChartsUtilsAll = {
4678
4678
  xDataXx.filter((x) => x[1] == 0).length == xDataXx.length) {
4679
4679
  yValIsAllNull = true;
4680
4680
  }
4681
+ if (!yDataSourceOld.some((x) => x != '' && x != '/' && x != null && x != undefined) &&
4682
+ !yDataSourceSxOld.some((x) => x != '' && x != '/' && x != null && x != undefined) &&
4683
+ !yDataSourceXxOld.some((x) => x != '' && x != '/' && x != null && x != undefined)) {
4684
+ yValIsAllNull = true;
4685
+ }
4681
4686
  let option = {
4682
4687
  grid: {
4683
4688
  // show: true,// 是否显示外边框线
@@ -4767,7 +4772,11 @@ const EChartsUtilsAll = {
4767
4772
  },
4768
4773
  },
4769
4774
  ],
4770
- series: [getLineObj(1, xData), getLineObj(2, xDataSx), getLineObj(3, xDataXx)],
4775
+ series: [
4776
+ !yValIsAllNull ? getLineObj(1, xData) : [],
4777
+ !yValIsAllNull ? getLineObj(2, xDataSx) : [],
4778
+ !yValIsAllNull ? getLineObj(3, xDataXx) : [],
4779
+ ],
4771
4780
  };
4772
4781
  return option;
4773
4782
  },
@@ -21061,7 +21070,7 @@ const FormulaUtils = {
21061
21070
  }
21062
21071
  }
21063
21072
  // 提取前6个值进行计算
21064
- const values = [val1, val2, val3, val4, val5, val6];
21073
+ const values = [parseFloat(val1), parseFloat(val2), parseFloat(val3), parseFloat(val4), parseFloat(val5), parseFloat(val6)];
21065
21074
  // 计算初始平均值avg
21066
21075
  const sum = values.reduce((acc, val) => preciseCalc(acc, val, 'add'), 0);
21067
21076
  const avg = preciseCalc(sum, values.length, 'div');