diff --git a/src/components/charts/StatisticsLegend.vue b/src/components/charts/StatisticsLegend.vue
index 112048e4..4e59b037 100644
--- a/src/components/charts/StatisticsLegend.vue
+++ b/src/components/charts/StatisticsLegend.vue
@@ -8,8 +8,8 @@
{{item.legend}}
-
{{unitConvert(item.aggregation.avg)}}
-
{{unitConvert(item.aggregation.max)}}
+
{{unitConvert(item.aggregation.avg, chartInfo.params.unitType).join(' ')}}
+
{{unitConvert(item.aggregation.max, chartInfo.params.unitType).join(' ')}}
@@ -22,7 +22,8 @@ import unitConvert from '@/utils/unit-convert'
export default {
name: 'StatisticsLegend',
props: {
- data: Array
+ data: Array,
+ chartInfo: Object
},
setup () {
return {
diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue
index 6920053b..7fb117ec 100644
--- a/src/views/charts/Chart.vue
+++ b/src/views/charts/Chart.vue
@@ -72,7 +72,7 @@
-
+