code: function getText(props, datum, index) {
    datum = datum || {};
    if (datum.label !== undefined) {
      return datum.label;
    }
    return Array.isArray(props.labels) ? props.labels[index] : props.labels;
  }
docs: Exported Functions