From 263a04ec09dd28b663426e7e2a18095b189b88e3 Mon Sep 17 00:00:00 2001 From: Marco Crapts Date: Sun, 20 Sep 2020 22:40:02 +0200 Subject: [PATCH] complete migration to vue 3 --- src/App.vue | 53 +++++++++++++++++++++------------------- src/components/Chart.vue | 33 ------------------------- 2 files changed, 28 insertions(+), 58 deletions(-) diff --git a/src/App.vue b/src/App.vue index 89fb72a..7b32b89 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,6 +8,8 @@ diff --git a/src/components/Chart.vue b/src/components/Chart.vue index 36acb9b..e32408c 100644 --- a/src/components/Chart.vue +++ b/src/components/Chart.vue @@ -29,7 +29,6 @@ export default { const fetchData = async () => { if (window.value && type.value) { - console.log(window.value, type.value) loading.value = true const typeApi = { temperatuur: 'temperature', @@ -81,38 +80,6 @@ export default { series: [{ name: capitalizeFirstLetter(type.value), data: chartData }], credits: { enabled: false } }) - // Highcharts.chart(chart.value, { - // chart: { styledMode: true, marginBottom: 25 }, - // title: { text: '' }, - // legend: { enabled: false }, - // plotOptions: { series: { animation: false, marker: { enabled: false } } }, - // xAxis: { - // type: 'datetime', - // dateTimeLabelFormats: { - // millisecond: '%H:%M:%S.%L', - // second: '%H:%M:%S', - // minute: '%H:%M', - // hour: '%H:%M', - // day: '%a %e %b', - // week: '%e %b', - // month: "%b '%y", - // year: '%Y' - // } - // }, - // yAxis: { - // labels: { - // formatter() { - // console.log(type) - // const suffix = type === 'temperatuur' ? '°C' : '%' - // return this.value + suffix - // } - // }, - // title: { enabled: false }, - // minTickInterval: 0.1 - // }, - // series: [{ name: capitalizeFirstLetter(type.value), chartData }], - // credits: { enabled: false } - // }) } watch([window, type], ([newWindow, newType], [oldWindow, oldType]) => { if (newWindow !== oldWindow || newType !== oldType) {