build/js/index.min.js
function processDatapoints(plot, series, datapoints) {
			var nrPoints = datapoints.points.length / datapoints.pointsize;
			var EPSILON = 0.005;

			//detects missplaced legacy parameters (prior v1.x.x) in the options object
			//this can happen if somebody upgrades to v1.x.x without adjusting the parameters or uses old examples
            var invalidLegacyOptions = hasInvalidParameters(series.curvedLines);

			if (!invalidLegacyOptions && series.curvedLines.apply == true && series.originSeries === undefined && nrPoints > (1 + EPSILON)) {
				if (series.lines.fill) {

					var pointsTop = calculateCurvePoints(datapoints, series.curvedLines, 1);
					var pointsBottom = calculateCurvePoints(datapoints, series.curvedLines, 2);
					//flot makes sure for us that we've got a second y point if fill is true !

					//Merge top and bottom curve
					datapoints.pointsize = 3;
					datapoints.points = [];
					var j = 0;
					var k = 0;
					var i = 0;
					var ps = 2;
					while (i < pointsTop.length || j < pointsBottom.length) {
						if (pointsTop[i] == pointsBottom[j]) {
							datapoints.points[k] = pointsTop[i];
							datapoints.points[k + 1] = pointsTop[i + 1];
							datapoints.points[k + 2] = pointsBottom[j + 1];
							j += ps;
							i += ps;

						} else if (pointsTop[i] < pointsBottom[j]) {
							datapoints.points[k] = pointsTop[i];
							datapoints.points[k + 1] = pointsTop[i + 1];
							datapoints.points[k + 2] = k > 0 ? datapoints.points[k - 1] : null;
							i += ps;
						} else {
							datapoints.points[k] = pointsBottom[j];
							datapoints.points[k + 1] = k > 1 ? datapoints.points[k - 2] : null;
							datapoints.points[k + 2] = pointsBottom[j + 1];
							j += ps;
						}
						k += 3;
					}
				} else if (series.lines.lineWidth > 0) {
					datapoints.points = calculateCurvePoints(datapoints, series.curvedLines, 1);
					datapoints.pointsize = 2;
				}
			}
		}
function processDatapoints(plot, series, datapoints) {
			var nrPoints = datapoints.points.length / datapoints.pointsize;
			var EPSILON = 0.005;

			//detects missplaced legacy parameters (prior v1.x.x) in the options object
			//this can happen if somebody upgrades to v1.x.x without adjusting the parameters or uses old examples
            var invalidLegacyOptions = hasInvalidParameters(series.curvedLines);

			if (!invalidLegacyOptions && series.curvedLines.apply == true && series.originSeries === undefined && nrPoints > (1 + EPSILON)) {
				if (series.lines.fill) {

					var pointsTop = calculateCurvePoints(datapoints, series.curvedLines, 1);
					var pointsBottom = calculateCurvePoints(datapoints, series.curvedLines, 2);
					//flot makes sure for us that we've got a second y point if fill is true !

					//Merge top and bottom curve
					datapoints.pointsize = 3;
					datapoints.points = [];
					var j = 0;
					var k = 0;
					var i = 0;
					var ps = 2;
					while (i < pointsTop.length || j < pointsBottom.length) {
						if (pointsTop[i] == pointsBottom[j]) {
							datapoints.points[k] = pointsTop[i];
							datapoints.points[k + 1] = pointsTop[i + 1];
							datapoints.points[k + 2] = pointsBottom[j + 1];
							j += ps;
							i += ps;

						} else if (pointsTop[i] < pointsBottom[j]) {
							datapoints.points[k] = pointsTop[i];
							datapoints.points[k + 1] = pointsTop[i + 1];
							datapoints.points[k + 2] = k > 0 ? datapoints.points[k - 1] : null;
							i += ps;
						} else {
							datapoints.points[k] = pointsBottom[j];
							datapoints.points[k + 1] = k > 1 ? datapoints.points[k - 2] : null;
							datapoints.points[k + 2] = pointsBottom[j + 1];
							j += ps;
						}
						k += 3;
					}
				} else if (series.lines.lineWidth > 0) {
					datapoints.points = calculateCurvePoints(datapoints, series.curvedLines, 1);
					datapoints.pointsize = 2;
				}
			}
		}
function processDatapoints ( plot , series , datapoints ) { var nrPoints = datapoints . points . length / datapoints . pointsize ; var EPSILON = 0.005 ; //detects missplaced legacy parameters (prior v1.x.x) in the options object //this can happen if somebody upgrades to v1.x.x without adjusting the parameters or uses old examples var invalidLegacyOptions = hasInvalidParameters ( series . curvedLines ) ; if ( ! invalidLegacyOptions && series . curvedLines . apply == true && series . originSeries === undefined && nrPoints > ( 1 + EPSILON ) ) { if ( series . lines . fill ) { var pointsTop = calculateCurvePoints ( datapoints , series . curvedLines , 1 ) ; var pointsBottom = calculateCurvePoints ( datapoints , series . curvedLines , 2 ) ; //flot makes sure for us that we've got a second y point if fill is true ! //Merge top and bottom curve datapoints . pointsize = 3 ; datapoints . points = [ ] ; var j = 0 ; var k = 0 ; var i = 0 ; var ps = 2 ; while ( i < pointsTop . length || j < pointsBottom . length ) { if ( pointsTop [ i ] == pointsBottom [ j ] ) { datapoints . points [ k ] = pointsTop [ i ] ; datapoints . points [ k + 1 ] = pointsTop [ i + 1 ] ; datapoints . points [ k + 2 ] = pointsBottom [ j + 1 ] ; j += ps ; i += ps ; } else if ( pointsTop [ i ] < pointsBottom [ j ] ) { datapoints . points [ k ] = pointsTop [ i ] ; datapoints . points [ k + 1 ] = pointsTop [ i + 1 ] ; datapoints . points [ k + 2 ] = k > 0 ? datapoints . points [ k - 1 ] : null ; i += ps ; } else { datapoints . points [ k ] = pointsBottom [ j ] ; datapoints . points [ k + 1 ] = k > 1 ? datapoints . points [ k - 2 ] : null ; datapoints . points [ k + 2 ] = pointsBottom [ j + 1 ] ; j += ps ; } k += 3 ; } } else if ( series . lines . lineWidth > 0 ) { datapoints . points = calculateCurvePoints ( datapoints , series . curvedLines , 1 ) ; datapoints . pointsize = 2 ; } } }
only if the plugin is active
only if the plugin is active