Commit fb2a816d by kyle

图表优化

parent cf7b0742
......@@ -360,7 +360,7 @@
}
this.myChart.setOption({
legend: {
data: ['首付款', '总贷款金额']
data: ['首付款(万元)', '总贷款金额(万元)']
},
grid: {
left: '20%', // 调整这个属性
......@@ -374,7 +374,7 @@
yAxis: {},
series: [
{
name:'首付款',
name:'首付款(万元)',
data: this.downPaymentList.map(item=>(item/10000).toFixed(2)),
type: 'bar',
stack: 'x',
......@@ -384,13 +384,13 @@
}
},
{
name:'总贷款金额',
name:'总贷款金额(万元)',
data: this.totalLoanList.map(item=>(item/10000).toFixed(2)),
type: 'bar',
stack: 'x',
label:{
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