派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-04-07 17a9663a92425787bf2c0f1e8f5360d4e8dbf3f9
src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
@@ -36,15 +36,11 @@
  },
  data () {
    return {
      dialogVisible: false
    }
  },
  methods: {
    drawChart: function () {
      const myChart = this.$echarts.init(this.$refs.main)
      const option = {
      watchData: [],
      dialogVisible: false,
      options: {
        title: {
          // text: '折线图堆叠'
        // text: '折线图堆叠'
        },
        color: ['#5470c6', '#91CC75', '#EE6666', '#FF0087'],
        tooltip: {
@@ -83,9 +79,9 @@
              color: '#00d0f9'
            }
          }]
          // pageTextStyle: {
          //   color: '#fff'
          // }
        // pageTextStyle: {
        //   color: '#fff'
        // }
        },
        grid: {
          left: '3%',
@@ -198,11 +194,19 @@
          }
        ]
      }
      myChart.setOption(option)
    }
  },
  methods: {
    drawChart: function () {
      const myChart = this.$echarts.init(this.$refs.main)
      // const option = {}
      myChart.setOption(this.options)
    }
  },
  mounted () {
    this.drawChart()
    const dataWatch = JSON.parse(JSON.stringify(this.$attrs))
    console.log(dataWatch)
  }
}
</script>