mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
swap around dimensions (#131945)
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
parent
640bc62b81
commit
ae944f485f
1 changed files with 8 additions and 1 deletions
|
@ -209,7 +209,14 @@ const generateMosaicVisAst: GenerateExpressionAstFunction = (...rest) => ({
|
|||
{
|
||||
type: 'function',
|
||||
function: 'mosaicVis',
|
||||
arguments: generateCommonArguments(...rest),
|
||||
arguments: {
|
||||
...generateCommonArguments(...rest),
|
||||
// flip order of bucket dimensions so the rows are fetched before the columns to keep them stable
|
||||
buckets: rest[2]
|
||||
.reverse()
|
||||
.map((o) => o.columnId)
|
||||
.map(prepareDimension),
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue