lib/dimple/dimple.v2.1.4.js
function (d, chart, series) {
            var returnCx = 0;
            if (series.x.measure !== null && series.x.measure !== undefined) {
                returnCx = series.x._scale(d.cx);
            } else if (series.x._hasCategories() && series.x.categoryFields.length >= 2) {
                returnCx = series.x._scale(d.cx) + dimple._helpers.xGap(chart, series) + ((d.xOffset + 0.5) * (((chart._widthPixels() / series.x._max) - 2 * dimple._helpers.xGap(chart, series)) * d.width));
            } else {
                returnCx = series.x._scale(d.cx) + ((chart._widthPixels() / series.x._max) / 2);
            }
            return returnCx;
        }
function (d, chart, series) {
            var returnCx = 0;
            if (series.x.measure !== null && series.x.measure !== undefined) {
                returnCx = series.x._scale(d.cx);
            } else if (series.x._hasCategories() && series.x.categoryFields.length >= 2) {
                returnCx = series.x._scale(d.cx) + dimple._helpers.xGap(chart, series) + ((d.xOffset + 0.5) * (((chart._widthPixels() / series.x._max) - 2 * dimple._helpers.xGap(chart, series)) * d.width));
            } else {
                returnCx = series.x._scale(d.cx) + ((chart._widthPixels() / series.x._max) / 2);
            }
            return returnCx;
        }
function ( d , chart , series ) { var returnCx = 0 ; if ( series . x . measure !== null && series . x . measure !== undefined ) { returnCx = series . x . _scale ( d . cx ) ; } else if ( series . x . _hasCategories ( ) && series . x . categoryFields . length >= 2 ) { returnCx = series . x . _scale ( d . cx ) + dimple . _helpers . xGap ( chart , series ) + ( ( d . xOffset + 0.5 ) * ( ( ( chart . _widthPixels ( ) / series . x . _max ) - 2 * dimple . _helpers . xGap ( chart , series ) ) * d . width ) ) ; } else { returnCx = series . x . _scale ( d . cx ) + ( ( chart . _widthPixels ( ) / series . x . _max ) / 2 ) ; } return returnCx ; }
Calculate the centre x position
Calculate the centre x position