function getTickType()

in src/MarkerLineChart.js [19:36]


function getTickType(props) {
  const { xEnd, yEnd, horizontal } = props;
  // warn if a range is passed for the dependent variable, which is expected to be a value
  if (
    (!horizontal && !isUndefined(yEnd)) ||
    (horizontal && !isUndefined(xEnd))
  ) {
    // eslint-disable-next-line no-console
    console.warn(
      'Warning: MarkerLineChart can only show the independent variable as a range, not the dependent variable.',
    );
  }

  if ((!horizontal && !isUndefined(xEnd)) || (horizontal && !isUndefined(yEnd)))
    return 'RangeValue';

  return 'ValueValue';
}