Skip to content
Snippets Groups Projects
Commit 47d3a237 authored by Wortman, Elliot (UG - Comp Sci & Elec Eng)'s avatar Wortman, Elliot (UG - Comp Sci & Elec Eng)
Browse files

Modify canvas ref on multi axis garph

parent 215b72fb
No related branches found
No related tags found
2 merge requests!5Replace Vue3 template site with NanoPatch UI & API,!4Modify passing x-axis-data as refering to function was causing errors in production build
<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: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment