This commit is contained in:
熊丽君
2021-12-09 10:42:32 +08:00
3 changed files with 20 additions and 11 deletions

View File

@ -127,16 +127,19 @@ export default {
{
name: '利润',
type: 'bar',
barWidth: 20,
data: [
2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3
],
lineStyle: {
itemStyle: {
color: 'rgb(118,196,166)'
}
},
barGap: '0'
},
{
name: '利润预测',
type: 'bar',
barWidth: 20,
data: [
2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3
],
@ -163,9 +166,10 @@ export default {
yAxisIndex: 1,
smooth: false,
data: [2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
lineStyle: {
itemStyle: {
color: '#55C5A2'
}
},
symbol: 'none'
}
],
// yAxis: {
@ -222,7 +226,7 @@ export default {
},
methods: {
initChart () {
this.chart = echarts.init(this.$refs.chart, 'macarons');
this.chart = echarts.init(this.$refs.chart);
this.chart.setOption(this.option);
}
}

View File

@ -120,7 +120,7 @@ export default {
})
},
initLine() {
this.chart = echarts.init(this.$refs.left2, 'macarons')
this.chart = echarts.init(this.$refs.left2)
this.setOptions2()
},
setOptions2() {

View File

@ -127,16 +127,18 @@ export default {
{
name: '利润',
type: 'bar',
barWidth: 20,
data: [
2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3
],
lineStyle: {
itemStyle: {
color: 'rgb(118,196,166)'
}
},
{
name: '利润预测',
type: 'bar',
barWidth: 20,
data: [
2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3
],
@ -163,9 +165,12 @@ export default {
yAxisIndex: 1,
smooth: false,
data: [2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
lineStyle: {
color: '#F6D97E'
}
itemStyle: {
normal: {
color: '#F6D97E'
}
},
symbol: 'none'
}
],
// yAxis: {
@ -222,7 +227,7 @@ export default {
},
methods: {
initChart () {
this.chart = echarts.init(this.$refs.chart, 'macarons');
this.chart = echarts.init(this.$refs.chart);
this.chart.setOption(this.option);
}
}