Visual and performative overhaul

This commit is contained in:
2022-08-31 08:49:53 +02:00
parent 27c13d0f47
commit 71d4bcaa74
3 changed files with 12 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ const chart = new Chart("chart", {
label: "Auslenkung", label: "Auslenkung",
borderColor: "teal", borderColor: "teal",
backgroundColor: "teal", backgroundColor: "teal",
tension: 0.5
} }
] ]
}, },
@@ -13,6 +14,16 @@ const chart = new Chart("chart", {
x: { x: {
display: false display: false
} }
},
elements: {
point: {
radius: 0
}
},
plugins: {
legend: {
display: false
}
} }
} }
}) })

View File

@@ -33,7 +33,7 @@ freq2 = document.querySelector("#freq")
freq2.addEventListener("input", create_proxy(inp_update)) freq2.addEventListener("input", create_proxy(inp_update))
document.body.addEventListener("wheel", create_proxy(scroll_update)) document.body.addEventListener("wheel", create_proxy(scroll_update))
sampling_frequency = 1920 / 10 * 4 sampling_frequency = 140
seconds = 2 seconds = 2
time = np.linspace(0, seconds, int(seconds * sampling_frequency)) time = np.linspace(0, seconds, int(seconds * sampling_frequency))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 182 KiB