code: function generateData(props) {
    const xValues = generateDataArray(props, "x");
    const yValues = generateDataArray(props, "y");
    const values = xValues.map((x, i) => {
      return { x, y: yValues[i] };
    });
    return values;
  }
docs: Returns generated x and y data based on domain and sample from props
  @param {Object} props: the props object
  @returns {Array} an array of data