code: function getDomain(props, axis) {
    const inherentAxis = getAxis(props);
    if (axis && axis !== inherentAxis) {
      return undefined;
    }
    return Domain.createDomainFunction(getDomainFromData)(props, inherentAxis);
  }
docs: exposed for use by VictoryChart