loulijun2021
2024-01-04 568d7578f92ff5a1ddcabb539e061ec74973b39c
src/utils/myEcharts.js
@@ -131,21 +131,21 @@
  var option = {
    backgroundColor: 'transparent',
    grid: {
      left: '2%',
      left: '5%',
      right: '5%',
      bottom: '0%',
      top: '2%',
      containLabel: true
    },
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'none'
      },
      formatter: function(params) {
        return params[0].name + ' : ' + params[0].value
      }
    },
    // tooltip: {
    //   trigger: 'axis',
    //   axisPointer: {
    //     type: 'none'
    //   },
    //   formatter: function(params) {
    //     return params[0].name + ' : ' + params[0].value
    //   }
    // },
    xAxis: {
      show: true,
      type: 'value',
@@ -169,7 +169,7 @@
      type: 'category',
      inverse: true,
      axisLabel: {
        show: true,
        show: false,
        textStyle: {
          color: '#000'
        }
@@ -266,16 +266,16 @@
  const option = {
    backgroundColor: 'transparent',
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        // type: 'shadow',
        label: {
          show: true,
          backgroundColor: '#000'
        }
      }
    },
    // tooltip: {
    //   trigger: 'axis',
    //   axisPointer: {
    //     // type: 'shadow',
    //     label: {
    //       show: true,
    //       backgroundColor: '#000'
    //     }
    //   }
    // },
    grid: {
      left: '2%',
      right: '5%',