|
|
@@ -172,7 +172,7 @@
|
|
|
</div>
|
|
|
<n-progress
|
|
|
type="line"
|
|
|
- :percentage="(chargingStatistics.chargingNum / chargingStatistics.totalChargingNum * 100).toFixed(2)"
|
|
|
+ :percentage="+(chargingStatistics.chargingNum / chargingStatistics.totalChargingNum * 100).toFixed(2)"
|
|
|
:show-indicator="false"
|
|
|
:indicator-placement="'inside'"
|
|
|
processing
|
|
|
@@ -188,7 +188,7 @@
|
|
|
</div>
|
|
|
<n-progress
|
|
|
type="line"
|
|
|
- :percentage="(chargingStatistics.electricityNum / chargingStatistics.totalElectricityNum * 100).toFixed(2)"
|
|
|
+ :percentage="+(chargingStatistics.electricityNum / chargingStatistics.totalElectricityNum * 100).toFixed(2)"
|
|
|
:show-indicator="false"
|
|
|
:indicator-placement="'inside'"
|
|
|
processing
|
|
|
@@ -237,7 +237,7 @@ const leftTitle: Ref<any[]> = ref([ {
|
|
|
option: {
|
|
|
color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
|
|
|
tooltip: {
|
|
|
- trigger: 'item'
|
|
|
+ formatter: '{b}: {c}个 ,占比: {d}%'
|
|
|
},
|
|
|
legend: {
|
|
|
orient: 'horizontal',
|
|
|
@@ -271,7 +271,7 @@ const leftTitle: Ref<any[]> = ref([ {
|
|
|
option: {
|
|
|
color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
|
|
|
tooltip: {
|
|
|
- trigger: 'item'
|
|
|
+ formatter: '{b}: {c}个 ,占比: {d}%'
|
|
|
},
|
|
|
legend: {
|
|
|
orient: 'horizontal',
|
|
|
@@ -305,7 +305,7 @@ const leftTitle: Ref<any[]> = ref([ {
|
|
|
option: {
|
|
|
color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
|
|
|
tooltip: {
|
|
|
- trigger: 'item'
|
|
|
+ formatter: '{b}: {c}个 ,占比: {d}%'
|
|
|
},
|
|
|
legend: {
|
|
|
orient: 'horizontal',
|
|
|
@@ -339,6 +339,7 @@ const leftTitle: Ref<any[]> = ref([ {
|
|
|
option: {
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
+ formatter: '{b} <br/>数量: {c}个',
|
|
|
axisPointer: {
|
|
|
type: 'shadow'
|
|
|
}
|
|
|
@@ -455,12 +456,12 @@ const region = ref({
|
|
|
}
|
|
|
},
|
|
|
series: {
|
|
|
- name: '数量',
|
|
|
+ name: '客流量',
|
|
|
type: 'bar',
|
|
|
barMaxWidth: '40',
|
|
|
itemStyle: {
|
|
|
color: 'rgb(86,137,239)',
|
|
|
- barBorderRadius: [ 0, 20, 20, 0 ]
|
|
|
+ borderRadius: [ 0, 20, 20, 0 ]
|
|
|
},
|
|
|
label: {
|
|
|
show: true,
|
|
|
@@ -473,8 +474,15 @@ const region = ref({
|
|
|
})
|
|
|
|
|
|
const powerChart = ref({
|
|
|
+ grid: {
|
|
|
+ left: '3%',
|
|
|
+ right: '6%',
|
|
|
+ bottom: '20%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
tooltip: {
|
|
|
- trigger: 'axis'
|
|
|
+ trigger: 'axis',
|
|
|
+ formatter: '今日{b} <br/>充电量: {c}kw·h'
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: 'category',
|
|
|
@@ -495,7 +503,7 @@ const powerChart = ref({
|
|
|
},
|
|
|
axisLabel: {
|
|
|
color: '#fff',
|
|
|
-
|
|
|
+ formatter: '{value} kw·h',
|
|
|
fontSize: 16
|
|
|
}
|
|
|
},
|
|
|
@@ -528,7 +536,9 @@ const powerChart = ref({
|
|
|
const airportChart = ref({
|
|
|
color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
|
|
|
tooltip: {
|
|
|
- trigger: 'item'
|
|
|
+ trigger: 'item',
|
|
|
+ formatter: '{b}: {c}个 ,占比: {d}%'
|
|
|
+
|
|
|
},
|
|
|
legend: {
|
|
|
orient: 'horizontal',
|