diff options
Diffstat (limited to 'src/components/_sila/Global/Chart.vue')
-rw-r--r-- | src/components/_sila/Global/Chart.vue | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue index 19491f68..5c32b031 100644 --- a/src/components/_sila/Global/Chart.vue +++ b/src/components/_sila/Global/Chart.vue @@ -3,6 +3,7 @@ </template> <script> +import Highcharts from 'highcharts'; import { Chart } from 'highcharts-vue'; export default { @@ -335,10 +336,19 @@ export default { }, async created() { + this.setChart(); this.setOptions(); }, methods: { + setChart() { + Highcharts.setOptions({ + lang: { + resetZoom: this.$t('chart.resetZoom'), + }, + }); + }, + setOptions() { switch (this.type) { case 'fans': |