make chart adjustments more responsive

This commit is contained in:
xenofem 2022-04-16 14:46:18 -04:00
parent 94e12a41f7
commit 9fa4942e9b

View file

@ -170,6 +170,9 @@ function plot(data) {
errorBarWhiskerSize: 5, errorBarWhiskerSize: 5,
}, },
}, },
animation: {
duration: 0,
},
}; };
}; };
@ -293,8 +296,10 @@ function plot(data) {
const update = () => { const update = () => {
updateYMax(); updateYMax();
northChart.update(); setTimeout(() => {
southChart.update(); northChart.update();
southChart.update();
}, 10);
const params = new URLSearchParams(); const params = new URLSearchParams();
const start = startInput.value; const start = startInput.value;