function getWedgesToRender({data, getAngle}) {
  const pie = pieBuilder()
    .sort(null)
    .value(getAngle);
  const pieData = pie(data).reverse();
  return pieData.map((row, index) => {
    return {
      ...row.data,
      angle0: row.startAngle,
      angle: row.endAngle,
      radius0: row.data.innerRadius || 0,
      radius: row.data.radius || 1,
      color: row.data.color || index
    };
  });
}
Create the list of wedges to render.
@param {Object} props
   props.data {Object} - tree structured data (each node has a name anc an array of children)
@returns {Array} Array of nodes.