mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Merge pull request #4732 from w33ble/percentage-count
Add 'Percentage of' to y-axis when using percentage mode
This commit is contained in:
commit
e4bc46a2bf
1 changed files with 2 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue