whole_func_string: function generateDataArray(props, axis) {
    const propsDomain = isPlainObject(props.domain) ? props.domain[axis] : props.domain;
    const domain = propsDomain || Scale.getBaseScale(props, axis).domain();
    const samples = props.samples || 1;
    const domainMax = Math.max(...domain);
    const domainMin = Math.min(...domain);
    const step = (domainMax - domainMin) / samples;
    const values = range(domainMin, domainMax, step);
    return last(values) === domainMax ? values : values.concat(domainMax);
  }
func_code_string: function generateDataArray(props, axis) {
    const propsDomain = isPlainObject(props.domain) ? props.domain[axis] : props.domain;
    const domain = propsDomain || Scale.getBaseScale(props, axis).domain();
    const samples = props.samples || 1;
    const domainMax = Math.max(...domain);
    const domainMin = Math.min(...domain);
    const step = (domainMax - domainMin) / samples;
    const values = range(domainMin, domainMax, step);
    return last(values) === domainMax ? values : values.concat(domainMax);
  }
func_documentation_string: Returns generated data for a given axis based on domain and sample from props