summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/_sila/Global/Chart.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue
index d478e615..ab84c135 100644
--- a/src/components/_sila/Global/Chart.vue
+++ b/src/components/_sila/Global/Chart.vue
@@ -53,6 +53,9 @@ export default {
};
},
computed: {
+ step() {
+ return this.timeScale === 'hour' ? 10 : 1;
+ },
metricData() {
let filteredData = this.data.filter((metric) => {
return metric.MetricValue !== 'nan';
@@ -150,7 +153,7 @@ export default {
categories: this.metricTime,
title: null,
labels: {
- step: 10,
+ step: this.step,
},
minorGridLineColor: '#1A3E5B1A',
},