diff --git a/frontend/src/components/Message.vue b/frontend/src/components/Message.vue
index 95f9e89..d35aafb 100644
--- a/frontend/src/components/Message.vue
+++ b/frontend/src/components/Message.vue
@@ -236,7 +236,12 @@
{{ graph.name }}
- Chart data could not be loaded.
+
+ Chart data could not be loaded.
import CommsInput from "./CommsInput.vue"
-
+import { Line as Chart } from "vue-chartjs/legacy"
+import {
+ Chart as ChartJS,
+ Title,
+ Tooltip,
+ Legend,
+ CategoryScale,
+ LinearScale,
+ PointElement,
+ LineElement
+} from "chart.js"
+ChartJS.register(
+ Title,
+ Tooltip,
+ Legend,
+ CategoryScale,
+ LinearScale,
+ PointElement,
+ LineElement
+)
export default {
name: "Message",
props: [
@@ -674,10 +698,18 @@ export default {
"deleteMessage"
],
components: {
- CommsInput
+ CommsInput,
+ Chart
},
data() {
return {
+ graphOptions: {
+ responsive: true,
+ maintainAspectRatio: false,
+ title: {
+ display: false
+ }
+ },
fileTypes: {
png: "mdi-file-image",
jpg: "mdi-file-image",