js/chart.min.js
//Apply cap a value at a high or low number

Apply cap a value at a high or low number
Apply cap a value at a high or low number
function CapValue(valueToCap, maxValue, minValue) {
		if (isNumber(maxValue)) {
			if (valueToCap > maxValue) {
				return maxValue;
			}
		}
		if (isNumber(minValue)) {
			if (valueToCap < minValue) {
				return minValue;
			}
		}
		return valueToCap;
	}
function CapValue ( valueToCap , maxValue , minValue ) { if ( isNumber ( maxValue ) ) { if ( valueToCap > maxValue ) { return maxValue ; } } if ( isNumber ( minValue ) ) { if ( valueToCap < minValue ) { return minValue ; } } return valueToCap ; }
Apply cap a value at a high or low number
Apply cap a value at a high or low number