| | |
| | | data () { |
| | | return { |
| | | watchData: [], |
| | | dialogVisible: false |
| | | } |
| | | }, |
| | | methods: { |
| | | drawChart: function () { |
| | | const myChart = this.$echarts.init(this.$refs.main) |
| | | const option = { |
| | | dialogVisible: false, |
| | | options: { |
| | | title: { |
| | | // text: '折线图堆叠' |
| | | // text: '折线图堆叠' |
| | | }, |
| | | color: ['#5470c6', '#91CC75', '#EE6666', '#FF0087'], |
| | | tooltip: { |
| | |
| | | color: '#00d0f9' |
| | | } |
| | | }] |
| | | // pageTextStyle: { |
| | | // color: '#fff' |
| | | // } |
| | | // pageTextStyle: { |
| | | // color: '#fff' |
| | | // } |
| | | }, |
| | | grid: { |
| | | left: '3%', |
| | |
| | | } |
| | | ] |
| | | } |
| | | myChart.setOption(option) |
| | | } |
| | | }, |
| | | methods: { |
| | | drawChart: function () { |
| | | const myChart = this.$echarts.init(this.$refs.main) |
| | | // const option = {} |
| | | myChart.setOption(this.options) |
| | | } |
| | | }, |
| | | mounted () { |