mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[TSVB] Stacked series should not contain null values (#14923)
This commit is contained in:
parent
0e7c426867
commit
0d92568229
1 changed files with 10 additions and 0 deletions
|
@ -59,6 +59,16 @@ function TimeseriesVisualization(props) {
|
|||
.filter(r => _.startsWith(r.id, s.id))
|
||||
.forEach(r => delete r.label);
|
||||
}
|
||||
if (s.stacked !== 'none') {
|
||||
series
|
||||
.filter(r => _.startsWith(r.id, s.id))
|
||||
.forEach(row => {
|
||||
row.data = row.data.map(point => {
|
||||
if (!point[1]) return [point[0], 0];
|
||||
return point;
|
||||
});
|
||||
});
|
||||
}
|
||||
if (s.stacked === 'percent') {
|
||||
s.seperate_axis = true;
|
||||
s.axisFormatter = 'percent';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue