mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
move percentage indication into parent class
This commit is contained in:
parent
1cfc8813df
commit
2be81abbfe
2 changed files with 3 additions and 3 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 () {
|
||||
|
|
|
@ -7,8 +7,7 @@ define(function (require) {
|
|||
name: 'count',
|
||||
title: 'Count',
|
||||
hasNoDsl: true,
|
||||
makeLabel: function (agg) {
|
||||
if (agg.vis.params.mode === 'percentage') return 'Percentage of Count';
|
||||
makeLabel: function () {
|
||||
return 'Count';
|
||||
},
|
||||
getFormat: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue