public float computeRawDistanceX(float distance) {
        return distance * (contentRectMinusAllMargins.width() / currentViewport.width());
    }
Translates viewport distance int pixel distance for X coordinates.
hellocharts-library/src/lecho/lib/hellocharts/computator/ChartComputator.java