client/splunk.ui.charting.js
function (points, width) {
		// points format: [M, 0, 0, L, 100, 0]
		// normalize to a crisp line
		if (points[1] === points[4]) {
			points[1] = points[4] = mathRound(points[1]) + (width % 2 / 2);
		}
		if (points[2] === points[5]) {
			points[2] = points[5] = mathRound(points[2]) + (width % 2 / 2);
		}
		return points;
	}
function (points, width) {
		// points format: [M, 0, 0, L, 100, 0]
		// normalize to a crisp line
		if (points[1] === points[4]) {
			points[1] = points[4] = mathRound(points[1]) + (width % 2 / 2);
		}
		if (points[2] === points[5]) {
			points[2] = points[5] = mathRound(points[2]) + (width % 2 / 2);
		}
		return points;
	}
function ( points , width ) { // points format: [M, 0, 0, L, 100, 0]
 // normalize to a crisp line
 if ( points [ 1 ] === points [ 4 ] ) { points [ 1 ] = points [ 4 ] = mathRound ( points [ 1 ] ) + ( width % 2 / 2 ) ; } if ( points [ 2 ] === points [ 5 ] ) { points [ 2 ] = points [ 5 ] = mathRound ( points [ 2 ] ) + ( width % 2 / 2 ) ; } return points ; }
Make a straight line crisper by not spilling out to neighbour pixels
@param {Array} points
@param {Number} width
Make a straight line crisper by not spilling out to neighbour pixels