whole_func_string: 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;
  }
func_code_string: 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;
  }
func_documentation_string: 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