example/public/ueditor/third-party/highcharts/highcharts.src.js
function (segment) {		
		var series = this,
			segmentPath = [],
			step = series.options.step;
			
		// build the segment line
		each(segment, function (point, i) {
			
			var plotX = point.plotX,
				plotY = point.plotY,
				lastPoint;

			if (series.getPointSpline) { // generate the spline as defined in the SplineSeries object
				segmentPath.push.apply(segmentPath, series.getPointSpline(segment, point, i));

			} else {

				// moveTo or lineTo
				segmentPath.push(i ? L : M);

				// step line?
				if (step && i) {
					lastPoint = segment[i - 1];
					if (step === 'right') {
						segmentPath.push(
							lastPoint.plotX,
							plotY
						);
						
					} else if (step === 'center') {
						segmentPath.push(
							(lastPoint.plotX + plotX) / 2,
							lastPoint.plotY,
							(lastPoint.plotX + plotX) / 2,
							plotY
						);
						
					} else {
						segmentPath.push(
							plotX,
							lastPoint.plotY
						);
					}
				}

				// normal line to next point
				segmentPath.push(
					point.plotX,
					point.plotY
				);
			}
		});
		
		return segmentPath;
	}
function (segment) {		
		var series = this,
			segmentPath = [],
			step = series.options.step;
			
		// build the segment line
		each(segment, function (point, i) {
			
			var plotX = point.plotX,
				plotY = point.plotY,
				lastPoint;

			if (series.getPointSpline) { // generate the spline as defined in the SplineSeries object
				segmentPath.push.apply(segmentPath, series.getPointSpline(segment, point, i));

			} else {

				// moveTo or lineTo
				segmentPath.push(i ? L : M);

				// step line?
				if (step && i) {
					lastPoint = segment[i - 1];
					if (step === 'right') {
						segmentPath.push(
							lastPoint.plotX,
							plotY
						);
						
					} else if (step === 'center') {
						segmentPath.push(
							(lastPoint.plotX + plotX) / 2,
							lastPoint.plotY,
							(lastPoint.plotX + plotX) / 2,
							plotY
						);
						
					} else {
						segmentPath.push(
							plotX,
							lastPoint.plotY
						);
					}
				}

				// normal line to next point
				segmentPath.push(
					point.plotX,
					point.plotY
				);
			}
		});
		
		return segmentPath;
	}
function ( segment ) { var series = this , segmentPath = [ ] , step = series . options . step ; // build the segment line each ( segment , function ( point , i ) { var plotX = point . plotX , plotY = point . plotY , lastPoint ; if ( series . getPointSpline ) { // generate the spline as defined in the SplineSeries object segmentPath . push . apply ( segmentPath , series . getPointSpline ( segment , point , i ) ) ; } else { // moveTo or lineTo segmentPath . push ( i ? L : M ) ; // step line? if ( step && i ) { lastPoint = segment [ i - 1 ] ; if ( step === 'right' ) { segmentPath . push ( lastPoint . plotX , plotY ) ; } else if ( step === 'center' ) { segmentPath . push ( ( lastPoint . plotX + plotX ) / 2 , lastPoint . plotY , ( lastPoint . plotX + plotX ) / 2 , plotY ) ; } else { segmentPath . push ( plotX , lastPoint . plotY ) ; } } // normal line to next point segmentPath . push ( point . plotX , point . plotY ) ; } } ) ; return segmentPath ; }
Return the graph path of a segment
Return the graph path of a segment