defaultFormat = function(v) {
      return isValue(v) ? +v : ''
    }
Get ratio value

@param {String} type Ratio for given type
@param {Object} d Data value object
@param {Boolean} asPercent Convert the return as percent or not
@return {Number} Ratio value
@private