whole_func_string: function getDataCoordinates(props, scale, x, y) {
    const { polar, horizontal } = props;
    if (!polar) {
      return {
        x: horizontal ? scale.x.invert(y) : scale.x.invert(x),
        y: horizontal ? scale.y.invert(x) : scale.y.invert(y)
      };
    } else {
      const origin = props.origin || { x: 0, y: 0 };
      const baseX = x - origin.x;
      const baseY = y - origin.y;
      const radius = Math.abs(baseX * Math.sqrt(1 + Math.pow(-baseY / baseX, 2)));
      const angle = (-Math.atan2(baseY, baseX) + Math.PI * 2) % (Math.PI * 2);
      return {
        x: scale.x.invert(angle),
        y: scale.y.invert(radius)
      };
    }
  }
func_code_string: function getDataCoordinates(props, scale, x, y) {
    const { polar, horizontal } = props;
    if (!polar) {
      return {
        x: horizontal ? scale.x.invert(y) : scale.x.invert(x),
        y: horizontal ? scale.y.invert(x) : scale.y.invert(y)
      };
    } else {
      const origin = props.origin || { x: 0, y: 0 };
      const baseX = x - origin.x;
      const baseY = y - origin.y;
      const radius = Math.abs(baseX * Math.sqrt(1 + Math.pow(-baseY / baseX, 2)));
      const angle = (-Math.atan2(baseY, baseX) + Math.PI * 2) % (Math.PI * 2);
      return {
        x: scale.x.invert(angle),
        y: scale.y.invert(radius)
      };
    }
  }
func_documentation_string: eslint-disable-next-line max-params