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.cjs.js CHANGED
@@ -6326,10 +6326,12 @@ const EChartsUtilsAll = {
6326
6326
  //x和y轴的数据
6327
6327
  const xData = xDataArr[0], // [60, 40, 20, 10, 5, 2, 1, 0.5, 0.25, 0.075],
6328
6328
  yData = yDataArr[0]; // [100.0, 100.0, 88.3, 69.3, 46.7, 27.0, 19.7, 5.6, 0.5, 0.3];
6329
- let xMin = 0.01, xMax = 200;
6329
+ let xMin = 0.035, xMax = 100;
6330
6330
  let seriesData = [];
6331
6331
  xData.forEach((item, index) => {
6332
- seriesData.push([item == '筛底' ? 0 : item, yData[index]]);
6332
+ if (item != '筛底' && yData[index] != 0) {
6333
+ seriesData.push([item == '筛底' ? 0 : item, yData[index]]);
6334
+ }
6333
6335
  });
6334
6336
  //验证是否没有任何数据,以便控制显示y轴的名称的距离位置
6335
6337
  let yValIsAllNull = false;
@@ -6408,6 +6410,22 @@ const EChartsUtilsAll = {
6408
6410
  inverse: true,
6409
6411
  min: xMin,
6410
6412
  max: xMax,
6413
+ // min: 0.035,
6414
+ // max: 100,
6415
+ // 关键:用 customValues 指定刻度位置(需 ECharts >= 5.5.1)
6416
+ axisTick: {
6417
+ show: true,
6418
+ alignWithLabel: true,
6419
+ customValues: xData,
6420
+ },
6421
+ axisLabel: {
6422
+ show: true,
6423
+ hideOverlap: false,
6424
+ customValues: xData,
6425
+ formatter: function (value) {
6426
+ return value;
6427
+ },
6428
+ },
6411
6429
  },
6412
6430
  yAxis: [
6413
6431
  {