function prepareData(data) {
  if (!seriesHasAngleRadius(data)) {
    return data;
  }

  return data.map(row => ({
    ...row,
    x: row.radius * Math.cos(row.angle),
    y: row.radius * Math.sin(row.angle)
  }));
}
Possibly convert polar coordinates to x/y for computing domain
@param {Array} data - an array of objects to check
@param {String} attr - the property being checked
@returns {Boolean} whether or not this series contains polar configuration