getPixelForValues method

MPPointD getPixelForValues(
  1. double x,
  2. double y,
  3. AxisDependency axis
)

Returns a recyclable MPPointD instance Transforms the given chart values into pixels. This is the opposite method to getValuesByTouchPoint(...).

@param x @param y @return

Implementation

MPPointD getPixelForValues(double x, double y, AxisDependency axis) {
  return getTransformer(axis)!.getPixelForValues(x, y);
}