管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-27 f98dba354a2d8f7b8d77984f2667432ff0b33363
src/components/chart/FileFormat.vue
@@ -16,12 +16,7 @@
    this.initChart()
  },
  methods: {
    async initChart() {
      let data = [
        {
          name: "user1",
@@ -69,8 +64,8 @@
      let yAxis = []
      if (res.code == 200) {
        data = res.result.map(item => {
          xAxis.push(item.name);
          yAxis.push(item.count);
          xAxis.push(item.name)
          yAxis.push(item.count)
        })
      }
      let option = {
@@ -81,7 +76,9 @@
        right: "10%",
        bottom: "15%",
      },
        tooltip: {
          show: true
        },
      xAxis: {
        data: xAxis,
        axisLabel: {
@@ -101,7 +98,6 @@
      yAxis: {      
        axisLine: {
          show: false,
        },
        axisTick: {
          show: false,
@@ -114,8 +110,8 @@
            lineStyle: {
              color: "#5d7289",
              width: 1,
              type: "dashed"
            }
              type: "dashed",
            },
          },
      },
      series: [
@@ -171,7 +167,7 @@
          data: yAxis,
        },
      ],
};
      }
      const chart = echarts.init(this.$refs.chart)