docs: private void resize() {
          double width  = getWidth() - getInsets().getLeft() - getInsets().getRight();
          double height = getHeight() - getInsets().getTop() - getInsets().getBottom();
          size          = width < height ? width : height;
  
          if (size > 0) {
              pane.setMaxSize(size, size);
              pane.relocate((getWidth() - size) * 0.5, (getHeight() - size) * 0.5);
              pane.setBackground(new Background(new BackgroundFill(getChartBackgroundColor(), new CornerRadii(1024), Insets.EMPTY)));
  
              chartCanvas.setWidth(size);
              chartCanvas.setHeight(size);
  
              overlayCanvas.setWidth(size);
              overlayCanvas.setHeight(size);
  
              redraw();
          }
      }