From 016664360d400969178895774cfd896e9e78681c Mon Sep 17 00:00:00 2001 From: Vitalii Lysak Date: Fri, 19 Aug 2022 15:56:15 +0300 Subject: SILABMC-270: refactor --- src/components/_sila/Global/Chart.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/_sila/Global') diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue index 5c32b031..7c66cf0c 100644 --- a/src/components/_sila/Global/Chart.vue +++ b/src/components/_sila/Global/Chart.vue @@ -336,12 +336,12 @@ export default { }, async created() { - this.setChart(); this.setOptions(); + this.setChart(); }, methods: { - setChart() { + setOptions() { Highcharts.setOptions({ lang: { resetZoom: this.$t('chart.resetZoom'), @@ -349,7 +349,7 @@ export default { }); }, - setOptions() { + setChart() { switch (this.type) { case 'fans': this.categories = this.setSpeed(10000); -- cgit v1.2.3