Added wave
This commit is contained in:
24
wave/plot.js
Normal file
24
wave/plot.js
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user