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);
}
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);
}
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 ) ; }
Returns generated data for a given axis based on domain and sample from props
Returns generated data for a given axis based on domain and sample from props