@@ -475,7 +475,7 @@ function getData(data, sumValue) {
name: data[i].name,
},
{
- value: sumValue - data[i].value,
+ value: sumValue - (data[i].value * 0.75).toFixed(3),
name: '',
itemStyle: {
color: 'rgba(0,0,0,0)',
@@ -697,6 +697,7 @@ export default {
if (between > 90) {
this.$message.error('时间选择不可超过90天')
} else {
+ this.topType = 'b'
this.getData()
}
@@ -1034,7 +1035,18 @@ export default {
color: ['#016DDA', '#23A0E4', '#51C0F0', '#6BE0E0', '#24DFBE', '#04E893'],
grid: {
top: '18%',
- bottom: barData.length == 5 ? '48%' : barData.length == 3 ? '60%' : '48%',
+ bottom:
+ barData.length == 5
+ ? '48%'
+ : barData.length == 3
+ ? '60%'
+ : barData.length == 4
+ ? '54%'
+ : barData.length == 2
+ ? '66%'
+ : barData.length == 1
+ ? '72%'
+ : '48%',
left: '25%',
containLabel: false,