src/js/util/scale-utils.js
function _ordinalAdjust(scale, value) {
	var isOrdinal = scale.hasOwnProperty("bandwidth");
	if (isOrdinal) {
		return scale(value) + scale.bandwidth() / 2;
	} else {
		return scale(value);
	}
}
function _ordinalAdjust(scale, value) {
	var isOrdinal = scale.hasOwnProperty("bandwidth");
	if (isOrdinal) {
		return scale(value) + scale.bandwidth() / 2;
	} else {
		return scale(value);
	}
}
function _ordinalAdjust ( scale , value ) { var isOrdinal = scale . hasOwnProperty ( "bandwidth" ) ; if ( isOrdinal ) { return scale ( value ) + scale . bandwidth ( ) / 2 ; } else { return scale ( value ) ; } }
TODO: make this keyed funcs that accept a `type` param (like "ordinal", "time", "linear") so that we dont have to check every time
TODO : make this keyed funcs that accept a type param ( like ordinal time linear ) so that we dont have to check every time