智慧园区前端大屏
linwe
2024-11-15 ee8bf280c0b977128ecf5f514d46051668a42a63
饼图样式调整
1 files modified
21 ■■■■■ changed files
src/views/survey/components/box/fireContent.vue 21 ●●●●● patch | view | raw | blame | history
src/views/survey/components/box/fireContent.vue
@@ -27,13 +27,13 @@
  {
    name: '一般',
    itemStyle: {
     color: '#FFC000'
      color: '#FFC000'
    }
  },
  {
    name: '较大',
    itemStyle: {
      color: '#F4090F'
    }
  },
@@ -45,7 +45,7 @@
  }
]
function getRiskSource () {
function getRiskSource() {
  getRiskSourceStatistic().then(res => {
    let data = res.data.data
    let dataRsult = []
@@ -73,16 +73,18 @@
          color: "#fff",
        },
        textAlign: "center",
        right: "43%",
        left: "62%",
        // right: "43%",
        top: "36%",
      },
      legend: {
        orient: "vertical",
        top: '8%',
        right: "8%",
        top: "5%",
        left: "5%",
        textStyle: {
          color: '#fff'
        }
          color: "#fff",
        },
      },
      grid: {
@@ -103,7 +105,8 @@
          type: 'pie',
          left: '-5%',
          radius: ['45%', '75%'],
          data: dataRsult
          data: dataRsult,
          left: "25%"
        }
      ]
    })