src/Histogram.js
function getLargestCount(domain, type) {
    var retVal = 1;

    for (var i = 0; i < domain.length; i++) {
        retVal = Math.max(retVal, type === 'cnv' ? domain[i].cnv : domain[i].count);
    }

    return retVal;
}
function getLargestCount(domain, type) {
    var retVal = 1;

    for (var i = 0; i < domain.length; i++) {
        retVal = Math.max(retVal, type === 'cnv' ? domain[i].cnv : domain[i].count);
    }

    return retVal;
}
function getLargestCount ( domain , type ) { var retVal = 1 ; for ( var i = 0 ; i < domain . length ; i ++ ) { retVal = Math . max ( retVal , type === 'cnv' ? domain [ i ] . cnv : domain [ i ] . count ) ; } return retVal ; }
Want to find the maximum value so we can label the axis and scale the bars accordingly.
No need to make this function public.
@returns {number}
Want to find the maximum value so we can label the axis and scale the bars accordingly . No need to make this function public .