function loadScale() {
  const {
    axisBottom: {
      scale: {
        name
      }
    }
  } = this._option;

  switch (name) {
    case 'scaleBand': {
      scaleBand.call(this);
      break;
    }
    case 'scaleLinear': {
      scaleLinear.call(this);
      break;
    }
    default: {
      throw new Error("Unrecognized scale name");
    }
  }
}
/**
 * Load corresponding scale by name.
 */
Load corresponding scale by name.
Load corresponding scale by name .
function loadScale() {
  const {
    axisBottom: {
      scale: {
        name
      }
    }
  } = this._option;
  switch (name) {
    case 'scaleBand': {
      scaleBand.call(this);
      break;
    }
    case 'scaleLinear': {
      scaleLinear.call(this);
      break;
    }
    default: {
      throw new Error("Unrecognized scale name");
    }
  }
}
function loadScale ( ) { const { axisBottom : { scale : { name } } } = this . _option ; switch ( name ) { case 'scaleBand' : { scaleBand . call ( this ) ; break ; } case 'scaleLinear' : { scaleLinear . call ( this ) ; break ; } default : { throw new Error ( "Unrecognized scale name" ) ; } } }
Load corresponding scale by name.
Load corresponding scale by name .