@SuppressWarnings("InfiniteLoopStatement")
    private void calculateVerticalScale() {
        int scale = 1;

        for (Map.Entry<String, Integer> entry : dataToDraw.entrySet()) {
            if (entry.getValue() > highestValue) highestValue = entry.getValue();
        }

        while (true) {
            if (highestValue / noVerticalLines == scale) {
                this.verticalScale = scale;
                return;
            } else {
                scale += 1;
            }
        }
    }