Commit fb2a816d by kyle

图表优化

parent cf7b0742
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
} }
this.myChart.setOption({ this.myChart.setOption({
legend: { legend: {
data: ['首付款', '总贷款金额'] data: ['首付款(万元)', '总贷款金额(万元)']
}, },
grid: { grid: {
left: '20%', // 调整这个属性 left: '20%', // 调整这个属性
...@@ -374,7 +374,7 @@ ...@@ -374,7 +374,7 @@
yAxis: {}, yAxis: {},
series: [ series: [
{ {
name:'首付款', name:'首付款(万元)',
data: this.downPaymentList.map(item=>(item/10000).toFixed(2)), data: this.downPaymentList.map(item=>(item/10000).toFixed(2)),
type: 'bar', type: 'bar',
stack: 'x', stack: 'x',
...@@ -384,13 +384,13 @@ ...@@ -384,13 +384,13 @@
} }
}, },
{ {
name:'总贷款金额', name:'总贷款金额(万元)',
data: this.totalLoanList.map(item=>(item/10000).toFixed(2)), data: this.totalLoanList.map(item=>(item/10000).toFixed(2)),
type: 'bar', type: 'bar',
stack: 'x', stack: 'x',
label:{ label:{
show:true, show:true,
position:'top' position:'inside',
} }
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment