code: public float computeRawX(float valueX) {
          // TODO: (contentRectMinusAllMargins.width() / currentViewport.width()) can be recalculated only when viewport
          // change.
          final float pixelOffset = (valueX - currentViewport.left) * (contentRectMinusAllMargins.width() /
                  currentViewport.width());
          return contentRectMinusAllMargins.left + pixelOffset;
      }
docs: Translates chart value into raw pixel value. Returned value is absolute pixel X coordinate. If this method
  return
  0 that means left most pixel of the screen.