function getAttributeScale(props, attr) {
  const scaleObject = getScaleObjectFromProps(props, attr);
  return getScaleFnFromScaleObject(scaleObject);
}
Get d3 scale for a given prop.
@param {Object} props Props.
@param {string} attr Attribute.
@returns {function} d3 scale function.