summaryrefslogtreecommitdiff
path: root/src/components/_sila/Global/Chart.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/_sila/Global/Chart.vue')
-rw-r--r--src/components/_sila/Global/Chart.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue
index 6b070a42..f6c389f8 100644
--- a/src/components/_sila/Global/Chart.vue
+++ b/src/components/_sila/Global/Chart.vue
@@ -46,8 +46,11 @@ export default {
},
computed: {
readyData() {
- let filteredData = this.data.filter((metric) => {
- return metric.Value !== 'nan';
+ let filteredData = this.data.map((metric) => {
+ return {
+ ...metric,
+ Value: metric.Value === 'nan' ? 0 : metric.Value,
+ };
});
filteredData.sort((a, b) => {