code: function () {
  		var series = this,
  			lastNull = -1,
  			segments = [],
  			i,
  			points = series.points,
  			pointsLength = points.length;
  
  		if (pointsLength) { // no action required for []
  			
  			// if connect nulls, just remove null points
  			if (series.options.connectNulls) {
  				i = pointsLength;
  				while (i--) {
  					if (points[i].y === null) {
  						points.splice(i, 1);
  					}
  				}
  				if (points.length) {
  					segments = [points];
  				}
  				
  			// else, split on null points
  			} else {
  				each(points, function (point, i) {
  					if (point.y === null) {
  						if (i > lastNull + 1) {
  							segments.push(points.slice(lastNull + 1, i));
  						}
  						lastNull = i;
  					} else if (i === pointsLength - 1) { // last value
  						segments.push(points.slice(lastNull + 1, i + 1));
  					}
  				});
  			}
  		}
  		
  		// register it
  		series.segments = segments;
  	}
docs: Divide the series data into segments divided by null values.