private void resizeText() {
        title.setFont(Font.font("Open Sans", FontWeight.NORMAL, size * 0.1));
        title.setTranslateX((size - title.getLayoutBounds().getWidth()) * 0.5);
        title.setTranslateY(size * 0.3);

        unit.setFont(Font.font("Open Sans", FontWeight.NORMAL, size * 0.1));
        unit.setTranslateX((size - unit.getLayoutBounds().getWidth()) * 0.5);
        unit.setTranslateY(size * 0.7);

        value.setFont(Font.font("Open Sans", FontWeight.BOLD, size * 0.25));
        value.setTranslateX((size - value.getLayoutBounds().getWidth()) * 0.5);
        value.setTranslateY(size * 0.5);
    }