double translatedEndX = domainAxis.valueToJava2D(endX, dataArea, 
                location);

        double translatedWidth = Math.max(1, Math.abs(translatedEndX 
                - translatedStartX));