th = a.graph().width, l.style.height = a.graph().height
        }

        let load_uplot_promise;

        function loadUplot() {
            return load_uplot_promise || (load_uplot_promise = loadJS("https://cdn.jsdelivr.net/npm/uplot@1.6.21/dist/uPlot.iife.min.js", "sha384-TwdJPnTsKP6pnvFZZKda0WJCXpjcHCa7MYHmjrYDu6rsEsb/UnFdoL0phS5ODqTA"))
        }

        let uplot;

        async function renderChart(e) {
            await loadUplot(), clear();
            let t = document.getElementById("chart");
  