Added wave

This commit is contained in:
2022-08-29 05:37:05 +02:00
parent aea5800b89
commit f680976e55
5 changed files with 113 additions and 0 deletions

24
wave/plot.js Normal file
View File

@@ -0,0 +1,24 @@
const chart = new Chart("chart", {
type: "line",
data: {
datasets: [{
label: "Auslenkung",
borderColor: "teal",
backgroundColor: "teal",
}
]
},
options: {
scales: {
x: {
display: false
}
}
}
})
function update(x, y) {
chart.data.labels = x
chart.data.datasets[0].data = y
chart.update()
}