function set( max ) {
	/* eslint-disable no-invalid-this */
	if ( !isFiniteNumber( max ) && !isNull( max ) ) {
		throw new TypeError( format( 'invalid assignment. `%s` must be a finite number or null. Value: `%s`.', 'yMax', max ) );
	}
	if ( max !== this._yMax ) {
		debug( 'Current value: %s.', this._yMax );

		this._yMax = max;
		debug( 'New value: %s.', this._yMax );

		this.emit( 'change' );
	}
}
Sets the maximum value of the y-axis domain.

@private
@param {(FiniteNumber|null)} max - maximum value
@throws {TypeError} must be a finite number or null