|
@@ -119,7 +119,7 @@
|
|
|
format: (val) => {
|
|
|
console.log(val)
|
|
|
// return val.toFixed(0) + ''
|
|
|
- return val * 100 + '%'
|
|
|
+ return (val * 100).toFixed()+"%"
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -128,8 +128,9 @@
|
|
|
name: '',
|
|
|
percent: '',
|
|
|
format: (val) => {
|
|
|
- console.log(val)
|
|
|
- return val * 100 + '%'
|
|
|
+ console.log(val * 100)
|
|
|
+ console.log((val * 100).toFixed())
|
|
|
+ return (val * 100).toFixed()+"%"
|
|
|
}
|
|
|
}
|
|
|
monthObj.data = this.orderList[i].storeMonthList[j].data
|
|
@@ -138,8 +139,9 @@
|
|
|
quarterObj.data = this.orderList[i].storeQuarterList[j].data
|
|
|
quarterObj.name = this.orderList[i].storeQuarterList[j].name
|
|
|
quarterObj.percent = this.orderList[i].storeQuarterList[j].percent
|
|
|
- monthPie.series.push(monthObj)
|
|
|
quarterPie.series.push(quarterObj)
|
|
|
+ monthPie.series.push(monthObj)
|
|
|
+
|
|
|
}
|
|
|
this.showPie(`mouthPie${i}`, monthPie);
|
|
|
this.showPie(`quarterPie${i}`, quarterPie)
|