diff --git a/src/components/charts/ChartTable.vue b/src/components/charts/ChartTable.vue index 70fe5a0a..ec9b9a38 100644 --- a/src/components/charts/ChartTable.vue +++ b/src/components/charts/ChartTable.vue @@ -28,8 +28,11 @@ > diff --git a/src/components/charts/PieTable.vue b/src/components/charts/PieTable.vue index 55507e79..1223ff93 100644 --- a/src/components/charts/PieTable.vue +++ b/src/components/charts/PieTable.vue @@ -36,8 +36,11 @@ {{ nameColumn === 'fqdnCategoryName' ? row['fqdnCategoryName'] : row['reputationLevel'] }} - - {{ shortFormatter(row[item.prop]) }} + + {{unitConvert(row[item.prop], unitTypes.byte).join(' ')}} + + + {{unitConvert(row[item.prop], unitTypes.number).join(' ')}} {{ row[item.prop] }} @@ -54,23 +57,27 @@ :label="item.label" :prop="item.prop" #default="{row}"> - - {{ nameColumn === 'fqdnCategoryName' ? row['categoryName'] : row['reputationLevel'] }} - - - {{ shortFormatter(row[item.prop]) }} - + + {{ nameColumn === 'fqdnCategoryName' ? row['categoryName'] : row['reputationLevel'] }} + + + {{unitConvert(row[item.prop], unitTypes.byte).join(' ')}} + + + {{unitConvert(row[item.prop], unitTypes.number).join(' ')}} + - {{ row[item.prop] }} - + {{ row[item.prop] }} + diff --git a/src/components/charts/StatisticsLegend.vue b/src/components/charts/StatisticsLegend.vue index 4676fd24..112048e4 100644 --- a/src/components/charts/StatisticsLegend.vue +++ b/src/components/charts/StatisticsLegend.vue @@ -8,8 +8,8 @@
{{item.legend}}
-
{{shortFormatter(item.aggregation.max)}}
-
{{shortFormatter(item.aggregation.avg)}}
+
{{unitConvert(item.aggregation.avg)}}
+
{{unitConvert(item.aggregation.max)}}
@@ -18,24 +18,16 @@