longyvfengyun
2023-11-30 5ebe1291c95021f3bcb14e70c9a0a61f4b207a63
src/components/echarts/options/normalLine.js
@@ -11,6 +11,7 @@
  };
  const option = {...defaultOption, ...data};
  return {
    color: ['#5470c6', '#91cc75', '#fac858', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],
    title: {
      text: ''
    },
@@ -19,6 +20,14 @@
    },
    legend: {
      data: []
    },
    toolbox: {
      show: false,
      feature: {
        saveAsImage: {
          title: "保存为图片"
        }
      }
    },
    grid: option.grid,
    xAxis: {
@@ -51,7 +60,7 @@
        if(isNaN(min)) {
          return 0;
        }else {
          return (min * option.minRatio).toHold(3);
          return option.minRatio === 1?min:(min * option.minRatio).toHold(3);
        }
      },
      max(data) {
@@ -59,7 +68,7 @@
        if(isNaN(max)) {
          return 1;
        }else {
          return (max * option.maxRatio).toHold(3);
          return option.maxRatio ===1?max:(max * option.maxRatio).toHold(3);
        }
      },
      axisLabel: {