lib/dimple/dimple.v2.1.4.js
function (d, chart, series) {
            var returnHeight = 0;
            if (series.y._hasTimeField()) {
                returnHeight = series.y.floatingBarWidth;
            } else if (series.y.measure !== null && series.y.measure !== undefined) {
                returnHeight = Math.abs(series.y._scale(d.y) - series.y._scale((d.y <= 0 ? d.y + d.height : d.y - d.height)));
            } else {
                returnHeight = d.height * ((chart._heightPixels() / series.y._max) - (dimple._helpers.yGap(chart, series) * 2)) - (dimple._helpers.yClusterGap(d, chart, series) * 2);
            }
            return returnHeight;
        }
function (d, chart, series) {
            var returnHeight = 0;
            if (series.y._hasTimeField()) {
                returnHeight = series.y.floatingBarWidth;
            } else if (series.y.measure !== null && series.y.measure !== undefined) {
                returnHeight = Math.abs(series.y._scale(d.y) - series.y._scale((d.y <= 0 ? d.y + d.height : d.y - d.height)));
            } else {
                returnHeight = d.height * ((chart._heightPixels() / series.y._max) - (dimple._helpers.yGap(chart, series) * 2)) - (dimple._helpers.yClusterGap(d, chart, series) * 2);
            }
            return returnHeight;
        }
function ( d , chart , series ) { var returnHeight = 0 ; if ( series . y . _hasTimeField ( ) ) { returnHeight = series . y . floatingBarWidth ; } else if ( series . y . measure !== null && series . y . measure !== undefined ) { returnHeight = Math . abs ( series . y . _scale ( d . y ) - series . y . _scale ( ( d . y <= 0 ? d . y + d . height : d . y - d . height ) ) ) ; } else { returnHeight = d . height * ( ( chart . _heightPixels ( ) / series . y . _max ) - ( dimple . _helpers . yGap ( chart , series ) * 2 ) ) - ( dimple . _helpers . yClusterGap ( d , chart , series ) * 2 ) ; } return returnHeight ; }
Calculate the height for bar type charts
Calculate the height for bar type charts