| | |
| | | if (this.chartData.lineData) { |
| | | option.series.push({ |
| | | name: this.chartData.lineName, |
| | | type: 'bar', |
| | | barWidth: '12px', |
| | | itemStyle: { |
| | | normal: { |
| | | color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { |
| | | offset: 0, |
| | | type: 'line', |
| | | smooth: true, |
| | | symbol: 'circle', |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | width: 2, |
| | | color: '#16B777', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: '#0D6E4A', |
| | | }, |
| | | ]), |
| | | }, |
| | | itemStyle: { |
| | | color: '#16B777', |
| | | }, |
| | | data: this.chartData.lineData, |
| | | }) |
| | |
| | | if (this.chartData.lineData2) { |
| | | option.series.push({ |
| | | name: this.chartData.lineName2, |
| | | type: 'bar', |
| | | barWidth: '12px', |
| | | itemStyle: { |
| | | normal: { |
| | | color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { |
| | | offset: 0, |
| | | type: 'line', |
| | | smooth: true, |
| | | symbol: 'circle', |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | width: 2, |
| | | color: '#FFD93D', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: '#B8860B', |
| | | }, |
| | | ]), |
| | | }, |
| | | itemStyle: { |
| | | color: '#FFD93D', |
| | | }, |
| | | data: this.chartData.lineData2, |
| | | }) |