function constructSingleDisplay( x, interval ) {
	var stemWidth;
	var leafWidth;
	var lastStem;
	var chrs;
	var len;
	var str;
	var stm;
	var lf;
	var i;
	var v;
	var n;

	x.sort( ascending );

	len = x.length;
	stm = new Array( len );
	lf = new Array( len );
	stemWidth = 0;
	leafWidth = 0;

	for ( i = 0; i < len; i++ ) {
		stm[ i ] = floor( x[ i ] / interval );
		chrs = stm[ i ].toString().length;
		if ( chrs > stemWidth ) {
			stemWidth = chrs;
		}
		lf[ i ] = x[ i ] % interval;
		chrs = lf[ i ].toString().length;
		if ( chrs > leafWidth ) {
			leafWidth = chrs;
		}
	}

	str = '';
	for ( i = 0; i < len; i++ ) {
		while ( lastStem < stm[ i ] ) {
			lastStem += 1;
			str += '\n';
			n = lastStem.toString().length - 1;
			str += ' ' + lastStem + spaces( stemWidth - n );
			str += ' | ';
		}
		if ( stm[ i ] !== lastStem ) {
			str += '\n';
			v = stm[ i ].toString();
			n = v.length - 1;
			str += ' ' + v + spaces( stemWidth - n );
			str += ' | ';
		}
		v = lf[ i ].toString();
		n = v.length;
		str += v + spaces( leafWidth - n ) + ' ';
		lastStem = stm[ i ];
	}
	return str;
}
Create string representation of stem-and-leaf plot for a single data vector.

@private
@param {(Array|TypedArray)} x - input data
@param {PositiveInteger} interval - 10**leafDigits
@returns {string} chart representation