Commit 738effea by 前端

Merge branch 'v1.60.0' into 'master'

上线合并

See merge request !47
2 parents 79dd7494 1f9f7aa2
......@@ -39,11 +39,33 @@ export default {
this[this.domId] = echarts.init(this.barLineDom)
},
methods: {
getLeft(list) {
const maxNum = Math.max(...list)
let left = 6
switch(true){
case maxNum<10:
left=6
break;
case maxNum<100:
left=9
break;
case maxNum<1000:
left=12
break;
case maxNum<10000:
left=15
break;
default:
left=18
break;
}
return `${left}%`
},
drawBarLine() {
this.barLineOptions = {
grid: {
right: '5%',
left: `${this.linetype == 1 ? '13%' : '5%'}`
left: this.getLeft(this.dataList || [0])
},
xAxis: {
type: 'category',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!