From 47d3a237058fb8be8d7e7e148b136f8173b47507 Mon Sep 17 00:00:00 2001 From: "Wortman, Elliot (UG - Comp Sci & Elec Eng)" <ew00710@surrey.ac.uk> Date: Sun, 26 Nov 2023 16:33:49 +0000 Subject: [PATCH] Modify canvas ref on multi axis garph --- src/components/MultiAxisChart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MultiAxisChart.vue b/src/components/MultiAxisChart.vue index 9a03aef..24097c2 100644 --- a/src/components/MultiAxisChart.vue +++ b/src/components/MultiAxisChart.vue @@ -1,6 +1,6 @@ <template> <div class="chart-container" style="position: relative; height:40vh; width:80vw"> - <canvas ref="multiLineChart"></canvas> + <canvas ref="multiAxisChart"></canvas> </div> </template> @@ -20,7 +20,7 @@ export default { }, }, mounted() { - const ctx = this.$refs.multiLineChart.getContext('2d'); + const ctx = this.$refs.multiAxisChart.getContext('2d'); new Chart(ctx, { type: 'line', data: { -- GitLab