src/chart/baseGroupedStackTimeBarChart.js
function trimToXDomain(array) {
		var start = 0,
			len = array.length,
			xDomainStart = parent.x.domain()[0];
		
		// remove any data earlier than first full range
		while ( start < len ) {
			if ( array[start].date.getTime() >= xDomainStart.getTime() ) {
				break;
			}
			start += 1;
		}
		return (start === 0 ? array : array.slice(start));
	}
function trimToXDomain(array) {
		var start = 0,
			len = array.length,
			xDomainStart = parent.x.domain()[0];
		
		// remove any data earlier than first full range
		while ( start < len ) {
			if ( array[start].date.getTime() >= xDomainStart.getTime() ) {
				break;
			}
			start += 1;
		}
		return (start === 0 ? array : array.slice(start));
	}
function trimToXDomain ( array ) { var start = 0 , len = array . length , xDomainStart = parent . x . domain ( ) [ 0 ] ; // remove any data earlier than first full range while ( start < len ) { if ( array [ start ] . date . getTime ( ) >= xDomainStart . getTime ( ) ) { break ; } start += 1 ; } return ( start === 0 ? array : array . slice ( start ) ) ; }
Remove data self falls outside the X domain.

@param {Array} array The array to inspect.
@returns {Array} Either a copy of the array with some elements removed, or the original array
if nothing needed to be removed.
Remove data self falls outside the X domain .