rapid-spreadjs 1.0.178 → 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
@@ -895,9 +895,9 @@ const BusinessUtils = {
895
895
  sheet.getCell(totalRowCount, contentColStartIndex).wordWrap(true);
896
896
  sheet.getCell(totalRowCount, contentColStartIndex + titleCellColumnCount).wordWrap(true);
897
897
  sheet.autoFitRow(totalRowCount);
898
- if (sheet.getRowHeight(totalRowCount) < 31) {
899
- sheet.setRowHeight(totalRowCount, 31);
900
- }
898
+ // if (sheet.getRowHeight(totalRowCount) < 31) {
899
+ // sheet.setRowHeight(totalRowCount, 31);
900
+ // }
901
901
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex });
902
902
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex + titleCellColumnCount });
903
903
  setFontSizeFamily(totalRowCount, contentColStartIndex);
@@ -928,9 +928,9 @@ const BusinessUtils = {
928
928
  sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
929
929
  sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
930
930
  sheet.autoFitRow(totalRowCount);
931
- if (sheet.getRowHeight(totalRowCount) < 31) {
932
- sheet.setRowHeight(totalRowCount, 31);
933
- }
931
+ // if (sheet.getRowHeight(totalRowCount) < 31) {
932
+ // sheet.setRowHeight(totalRowCount, 31);
933
+ // }
934
934
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
935
935
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
936
936
  setFontSizeFamily(totalRowCount, colIndexTitle);
@@ -954,9 +954,9 @@ const BusinessUtils = {
954
954
  sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
955
955
  sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
956
956
  sheet.autoFitRow(totalRowCount);
957
- if (sheet.getRowHeight(totalRowCount) < 31) {
958
- sheet.setRowHeight(totalRowCount, 31);
959
- }
957
+ // if (sheet.getRowHeight(totalRowCount) < 31) {
958
+ // sheet.setRowHeight(totalRowCount, 31);
959
+ // }
960
960
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
961
961
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
962
962
  setFontSizeFamily(totalRowCount, colIndexTitle);
@@ -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
  {