		{
						stroke: "green",
						fill: "rgba(0,255,0,0.1)",
					},
					{
						stroke: "blue",
						fill: "rgba(0,0,255,0.1)",
					},
				],
			};

			let ctnr = document.querySelector("#resize");

			let u = new uPlot(opts, data, ctnr);

			setTimeout(() => {
				let tr = document.querySelector(".u-title").getBoundingClientRect();
				let lr = document.querySelector(".u-legend").getBoundingClientRect();

				setInterval(() => {
					let cr = ctnr.getBoundingClientRect();

					let newWidth = cr.width;
