src/coord/Axis.js
function (data, clamp) {
        var extent = this._extent;
        var scale = this.scale;
        data = scale.normalize(data);

        if (this.onBand && scale.type === 'ordinal') {
            extent = extent.slice();
            fixExtentWithBands(extent, scale.count());
        }

        return linearMap(data, NORMALIZED_EXTENT, extent, clamp);
    }
function (data, clamp) {
        var extent = this._extent;
        var scale = this.scale;
        data = scale.normalize(data);

        if (this.onBand && scale.type === 'ordinal') {
            extent = extent.slice();
            fixExtentWithBands(extent, scale.count());
        }

        return linearMap(data, NORMALIZED_EXTENT, extent, clamp);
    }
function ( data , clamp ) { var extent = this . _extent ; var scale = this . scale ; data = scale . normalize ( data ) ; if ( this . onBand && scale . type === 'ordinal' ) { extent = extent . slice ( ) ; fixExtentWithBands ( extent , scale . count ( ) ) ; } return linearMap ( data , NORMALIZED_EXTENT , extent , clamp ) ; }
Convert data to coord. Data is the rank if it has an ordinal scale
@param {number} data
@param  {boolean} clamp
@return {number}
Convert data to coord . Data is the rank if it has an ordinal scale