function set( y ) {
	/* eslint-disable no-invalid-this */
	if ( !isArray( y ) ) {
		throw new TypeError( format( 'invalid assignment. `%s` must be an array. Value: `%s`.', 'y', y ) );
	}
	debug( 'Current value: %s.', JSON.stringify( this._yData ) );

	this._yData = y.slice();
	debug( 'New Value: %s.', JSON.stringify( this._yData ) );

	this.emit( 'change' );
}
Sets the plot `y` values.

@private
@param {Array} y - y values
@throws {TypeError} must be an array
@returns {void}