mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
045190d7dd
commit
5a293aad3d
1 changed files with 1 additions and 10 deletions
|
@ -43,17 +43,8 @@ define(function (require) {
|
|||
};
|
||||
|
||||
Legend.prototype._getSeriesLabels = function (data) {
|
||||
var isOneSeries = data.every(function (chart) {
|
||||
return chart.series.length === 1;
|
||||
});
|
||||
|
||||
var values = data.map(function (chart) {
|
||||
var yLabel = isOneSeries ? chart.yAxisLabel : undefined;
|
||||
|
||||
return chart.series.map(function (series) {
|
||||
if (yLabel) series.label = yLabel;
|
||||
return series;
|
||||
});
|
||||
return chart.series;
|
||||
})
|
||||
.reduce(function (a, b) {
|
||||
return a.concat(b);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue