in src/YAxis.js [123:135]
static getMargin(props) {
const { ticksProps, labelsProps, titleProps } = getAxisChildProps(props);
const margins = [];
if (props.showTicks) margins.push(YTicks.getMargin(ticksProps));
if (props.showTitle && props.title)
margins.push(YAxisTitle.getMargin(titleProps));
if (props.showLabels) margins.push(YAxisLabels.getMargin(labelsProps));
return sumMargins(margins, 'margin');
}