ZhangXianQiang
2024-03-04 c2b99128ae30b4f3ecc9afbb99e39194079ee8e0
src/views/daoAnOffice/right/analysis/index.vue
@@ -135,8 +135,21 @@
    dimensions: ['name', 'state1', 'state2', 'state3'],
    source: testData.value
  },
  xAxis: { type: 'category', axisTick: false },
  yAxis: {},
  xAxis: {
    type: 'category',
    axisTick: false,
    axisLabel: {
      fontSize: 14,
      color: '#4D76B0',
      margin: 15
    },
  },
  yAxis: {
    axisLabel: {
      fontSize: 14,
      color: '#4D76B0',
    },
  },
  series: [
    {
      type: 'bar',
@@ -255,9 +268,21 @@
    tooltip: {
      show: true,
      trigger: 'axis',
      backgroundColor: '#000001cc',
      borderWidth: 0,
      textStyle: {
        color: '#4D76B0',
        fontSize: 16
      },
      axisPointer: {
        type: 'shadow',
        lable: {
          color: '#000000'
        }
      },
      padding: [20, 25],
      formatter: function (params) {
        return params[0].name + '<br/>' + params[0].seriesName + ':' + `<span style="color:rgba(207, 178, 73, 1)">${params[0].value}</span>` + '<br/>' + params[1].seriesName + ':' + `<span style="color:rgba(43, 176, 109, 1)">${params[1].value}</span>`;
      }
    },
    grid: {
@@ -269,10 +294,20 @@
    },
    xAxis: {
      type: 'category',
      data: Object.keys(acitveData.value.state)
      data: Object.keys(acitveData.value.state),
      axisLabel: {
        fontSize: 14,
        color: '#4D76B0',
        margin: 15
      },
      axisTick: false
    },
    yAxis: {
      type: 'value'
      type: 'value',
      axisLabel: {
        fontSize: 14,
        color: '#4D76B0'
      }
    },
    series: [
      {
@@ -362,4 +397,5 @@
  .el-input__inner {
    color: #4481DD;
  }
}</style>
}
</style>