Kontrast
Demos
Download
Contact
[deutsch]
Hiding a plot
This example shows how to hide and (re-)show a
plot
.
The skeleton of the code is as follows.
let lines1 = graph.createLines({ thickness: 3, color: 'red', data: { x: [0, 1], y: [0, 1] } }) let button1 = document.getElementById("hidden1") button1.addEventListener("click", function() { lines1.hidden.toggle() })