rapid-spreadjs 1.0.98 → 1.0.99

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
@@ -4463,8 +4463,8 @@ const EChartsUtilsAll = {
4463
4463
  },
4464
4464
  xAxis: {
4465
4465
  type: 'value',
4466
- max: xAxisMax,
4467
- min: xAxisMin,
4466
+ max: !yValIsAllNull ? xAxisMax : 0,
4467
+ min: !yValIsAllNull ? xAxisMin : 0,
4468
4468
  data: xData,
4469
4469
  axisTick: {
4470
4470
  alignWithLabel: true, //使得刻度线和标签对齐
@@ -4474,8 +4474,8 @@ const EChartsUtilsAll = {
4474
4474
  yAxis: [
4475
4475
  {
4476
4476
  type: 'value',
4477
- max: yAxisMax,
4478
- min: yAxisMin,
4477
+ max: !yValIsAllNull ? yAxisMax : 0,
4478
+ min: !yValIsAllNull ? yAxisMin : 0,
4479
4479
  name: yName,
4480
4480
  nameGap: !yValIsAllNull ? 40 : 5,
4481
4481
  nameRotate: 90,
@@ -4494,7 +4494,7 @@ const EChartsUtilsAll = {
4494
4494
  },
4495
4495
  },
4496
4496
  ],
4497
- series: seriesData,
4497
+ series: !yValIsAllNull ? seriesData : [],
4498
4498
  };
4499
4499
  return option;
4500
4500
  },