rapid-spreadjs 1.0.179 → 1.0.180

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
@@ -6304,10 +6304,12 @@ const EChartsUtilsAll = {
6304
6304
  //x和y轴的数据
6305
6305
  const xData = xDataArr[0], // [60, 40, 20, 10, 5, 2, 1, 0.5, 0.25, 0.075],
6306
6306
  yData = yDataArr[0]; // [100.0, 100.0, 88.3, 69.3, 46.7, 27.0, 19.7, 5.6, 0.5, 0.3];
6307
- let xMin = 0.01, xMax = 200;
6307
+ let xMin = 0.035, xMax = 100;
6308
6308
  let seriesData = [];
6309
6309
  xData.forEach((item, index) => {
6310
- seriesData.push([item == '筛底' ? 0 : item, yData[index]]);
6310
+ if (item != '筛底' && yData[index] != 0) {
6311
+ seriesData.push([item == '筛底' ? 0 : item, yData[index]]);
6312
+ }
6311
6313
  });
6312
6314
  //验证是否没有任何数据,以便控制显示y轴的名称的距离位置
6313
6315
  let yValIsAllNull = false;
@@ -6386,6 +6388,22 @@ const EChartsUtilsAll = {
6386
6388
  inverse: true,
6387
6389
  min: xMin,
6388
6390
  max: xMax,
6391
+ // min: 0.035,
6392
+ // max: 100,
6393
+ // 关键:用 customValues 指定刻度位置(需 ECharts >= 5.5.1)
6394
+ axisTick: {
6395
+ show: true,
6396
+ alignWithLabel: true,
6397
+ customValues: xData,
6398
+ },
6399
+ axisLabel: {
6400
+ show: true,
6401
+ hideOverlap: false,
6402
+ customValues: xData,
6403
+ formatter: function (value) {
6404
+ return value;
6405
+ },
6406
+ },
6389
6407
  },
6390
6408
  yAxis: [
6391
6409
  {