docs: private void initGraphics() {
          // Set initial size
          if (Double.compare(gauge.getPrefWidth(), 0.0) <= 0 || Double.compare(gauge.getPrefHeight(), 0.0) <= 0 ||
              Double.compare(gauge.getWidth(), 0.0) <= 0 || Double.compare(gauge.getHeight(), 0.0) <= 0) {
              if (gauge.getPrefWidth() > 0 && gauge.getPrefHeight() > 0) {
                  gauge.setPrefSize(gauge.getPrefWidth(), gauge.getPrefHeight());
              } else {
                  gauge.setPrefSize(PREFERRED_WIDTH, PREFERRED_HEIGHT);
              }
          }
  
          barBackground = new Arc(PREFERRED_WIDTH * 0.5, PREFERRED_HEIGHT * 0.696, PREFERRED_WIDTH * 0.275, PREFERRED_WIDTH * 0.275, ANGLE_RANGE * 0.5 + 90, -ANGLE_RANGE);
          barBackground.setType(ArcType.OPEN);
          barBackground.setStroke(gauge.getBarBackgroundColor());
          barBackground.setStrokeWidth(PREFERRED_WIDTH * 0.02819549 * 2);
          barBackground.setStrokeLineCap(StrokeLineCap.BUTT);
          barBackground.setFill(null);
  
          sectionCanvas = new Canvas(PREFERRED_WIDTH, PREFERRED_HEIGHT);
          sectionCtx    = sectionCanvas.getGraphicsContext2D();
  
          needleRotate = new Rotate((gauge.getValue() - oldValue - minValue) * angleStep);
  
          needleMoveTo1        = new MoveTo();
          needleCubicCurveTo2  = new CubicCurveTo();
          needleCubicCurveTo3  = new CubicCurveTo();
          needleCubicCurveTo4  = new CubicCurveTo();
          needleCubicCurveTo5  = new CubicCurveTo();
          needleClosePath6     = new ClosePath();
          needleMoveTo7        = new MoveTo();
          needleCubicCurveTo8  = new CubicCurveTo();
          needleCubicCurveTo9  = new CubicCurveTo();
          needleCubicCurveTo10 = new CubicCurveTo();
          needleCubicCurveTo11 = new CubicCurveTo();
          needleClosePath12    = new ClosePath();
          needle = new Path(needleMoveTo1, needleCubicCurveTo2, needleCubicCurveTo3, needleCubicCurveTo4, needleCubicCurveTo5, needleClosePath6,
                            needleMoveTo7, needleCubicCurveTo8, needleCubicCurveTo9, needleCubicCurveTo10, needleCubicCurveTo11, needleClosePath12);
          needle.setFillRule(FillRule.EVEN_ODD);
          needle.getTransforms().setAll(needleRotate);
          needle.setFill(gauge.getNeedleColor());
          needle.setStrokeType(StrokeType.INSIDE);
          needle.setStrokeWidth(1);
          needle.setStroke(gauge.getBackgroundPaint());
  
          needleTooltip = new Tooltip(String.format(locale, formatString, gauge.getValue()));
          needleTooltip.setTextAlignment(TextAlignment.CENTER);
          Tooltip.install(needle, needleTooltip);
  
          pane = new Pane(barBackground, sectionCanvas, needle);
          pane.setBorder(new Border(new BorderStroke(gauge.getBorderPaint(), BorderStrokeStyle.SOLID, new CornerRadii(1024), new BorderWidths(gauge.getBorderWidth()))));
          pane.setBackground(new Background(new BackgroundFill(gauge.getBackgroundPaint(), new CornerRadii(1024), Insets.EMPTY)));
  
          getChildren().setAll(pane);
      }