longyvfengyun
2023-11-20 55c60e84df6378b5e79bb5ebf1c3ce8dc281c69f
src/components/echarts/options/getNormalBar.js
@@ -4,7 +4,7 @@
const getNormalBar = (data)=>{
  const defaultOption = {
    minRatio: 0,
    maxRatio: 1.2,
    maxRatio: 1.1,
    grid: {
      top: '15%',
      right: '3%',
@@ -46,7 +46,7 @@
        if(isNaN(min)) {
          return 0;
        }else {
          return min * option.minRatio;
          return (min * option.minRatio).toHold(3);
        }
      },
      max(data) {
@@ -54,7 +54,7 @@
        if(isNaN(max)) {
          return 1;
        }else {
          return (max * option.maxRatio).toHold(0);
          return (max * option.maxRatio).toHold(3);
        }
      },
      axisLabel: {
@@ -88,6 +88,7 @@
        data: [],
        type: 'bar',
        showBackground: true,
        symbolSize: 0,
        backgroundStyle: {
          color: 'rgba(180, 180, 180, 0.2)'
        },