(...e[1]))) + Math.floor(Math.log10(Math.max(...e[1])) / 3)) * 6]
                };
            uplot = new uPlot(d, e, t)
        }

        function resizeChart() {
            if (uplot) {
                let e = document.getElementById("chart");
                uplot.setSize({width: e.clientWidth, height: e.clientHeight})
            }
        }

        function redrawChart() {
            uplot && "block" == document.getElementById("chart").style.display && renderChart(uplot.data)
        }

        