e ResizeObserver -> https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
      window.addEventListener("resize", () => {
        chart.resize(window.innerWidth, window.innerHeight);
      });
    </script>
  </body>
</html>
