Merge pull request #4732 from w33ble/percentage-count

Add 'Percentage of' to y-axis when using percentage mode
This commit is contained in:
Rashid Khan 2015-08-25 12:51:14 -07:00
commit e4bc46a2bf

View file

@ -260,7 +260,8 @@ define(function (require) {
AggConfig.prototype.makeLabel = function () {
if (!this.type) return '';
return this.type.makeLabel(this);
var pre = (_.get(this.vis, 'params.mode') === 'percentage') ? 'Percentage of ' : '';
return pre += this.type.makeLabel(this);
};
AggConfig.prototype.field = function () {