From 96b59180501ba4444bbf4109fffe4b200cd50b2e Mon Sep 17 00:00:00 2001 From: Vitalii Lysak Date: Mon, 25 Jul 2022 17:40:25 +0300 Subject: add step for chart --- src/components/_sila/Global/Chart.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/components/_sila') 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', }, -- cgit v1.2.3