样式修改
This commit is contained in:
@ -127,16 +127,19 @@ export default {
|
|||||||
{
|
{
|
||||||
name: '利润',
|
name: '利润',
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
|
barWidth: 20,
|
||||||
data: [
|
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
|
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)'
|
color: 'rgb(118,196,166)'
|
||||||
}
|
},
|
||||||
|
barGap: '0'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '利润预测',
|
name: '利润预测',
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
|
barWidth: 20,
|
||||||
data: [
|
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
|
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,
|
yAxisIndex: 1,
|
||||||
smooth: false,
|
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],
|
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'
|
color: '#55C5A2'
|
||||||
}
|
},
|
||||||
|
symbol: 'none'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// yAxis: {
|
// yAxis: {
|
||||||
@ -222,7 +226,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initChart () {
|
initChart () {
|
||||||
this.chart = echarts.init(this.$refs.chart, 'macarons');
|
this.chart = echarts.init(this.$refs.chart);
|
||||||
this.chart.setOption(this.option);
|
this.chart.setOption(this.option);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
initLine() {
|
initLine() {
|
||||||
this.chart = echarts.init(this.$refs.left2, 'macarons')
|
this.chart = echarts.init(this.$refs.left2)
|
||||||
this.setOptions2()
|
this.setOptions2()
|
||||||
},
|
},
|
||||||
setOptions2() {
|
setOptions2() {
|
||||||
|
@ -127,16 +127,18 @@ export default {
|
|||||||
{
|
{
|
||||||
name: '利润',
|
name: '利润',
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
|
barWidth: 20,
|
||||||
data: [
|
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
|
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)'
|
color: 'rgb(118,196,166)'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '利润预测',
|
name: '利润预测',
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
|
barWidth: 20,
|
||||||
data: [
|
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
|
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,
|
yAxisIndex: 1,
|
||||||
smooth: false,
|
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],
|
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: '#F6D97E'
|
normal: {
|
||||||
}
|
color: '#F6D97E'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
symbol: 'none'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// yAxis: {
|
// yAxis: {
|
||||||
@ -222,7 +227,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initChart () {
|
initChart () {
|
||||||
this.chart = echarts.init(this.$refs.chart, 'macarons');
|
this.chart = echarts.init(this.$refs.chart);
|
||||||
this.chart.setOption(this.option);
|
this.chart.setOption(this.option);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user