[8.14] [UnifiedHistogram] Improve breakdown chart when values for the field are missing (#181013) (#181433)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[UnifiedHistogram] Improve breakdown chart when values for the field
are missing (#181013)](https://github.com/elastic/kibana/pull/181013)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-04-23T12:55:30Z","message":"[UnifiedHistogram]
Improve breakdown chart when values for the field are missing
(#181013)\n\n## Summary\r\n\r\nThis PR changes Lens configuration to
visualize data even if values for\r\nthe \"Breakdown by\" field are not
provided.\r\n\r\nBefore:\r\n<img width=\"600\" alt=\"Screenshot
2024-04-17 at 11 34
41\"\r\nsrc=\"02957896-4d5b-4a99-b09b-076ee962c219\">\r\n\r\nAfter:\r\n<img
width=\"600\" alt=\"Screenshot 2024-04-17 at 11 35
13\"\r\nsrc=\"a5a89785-71b8-4d77-9423-df573cc21d17\">","sha":"4c09bc938ce1654d0acf40d9a1f881a04ac8b709","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:DataDiscovery","backport:prev-minor","Feature:UnifiedHistogram","v8.15.0"],"title":"[UnifiedHistogram]
Improve breakdown chart when values for the field are
missing","number":181013,"url":"https://github.com/elastic/kibana/pull/181013","mergeCommit":{"message":"[UnifiedHistogram]
Improve breakdown chart when values for the field are missing
(#181013)\n\n## Summary\r\n\r\nThis PR changes Lens configuration to
visualize data even if values for\r\nthe \"Breakdown by\" field are not
provided.\r\n\r\nBefore:\r\n<img width=\"600\" alt=\"Screenshot
2024-04-17 at 11 34
41\"\r\nsrc=\"02957896-4d5b-4a99-b09b-076ee962c219\">\r\n\r\nAfter:\r\n<img
width=\"600\" alt=\"Screenshot 2024-04-17 at 11 35
13\"\r\nsrc=\"a5a89785-71b8-4d77-9423-df573cc21d17\">","sha":"4c09bc938ce1654d0acf40d9a1f881a04ac8b709"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/181013","number":181013,"mergeCommit":{"message":"[UnifiedHistogram]
Improve breakdown chart when values for the field are missing
(#181013)\n\n## Summary\r\n\r\nThis PR changes Lens configuration to
visualize data even if values for\r\nthe \"Breakdown by\" field are not
provided.\r\n\r\nBefore:\r\n<img width=\"600\" alt=\"Screenshot
2024-04-17 at 11 34
41\"\r\nsrc=\"02957896-4d5b-4a99-b09b-076ee962c219\">\r\n\r\nAfter:\r\n<img
width=\"600\" alt=\"Screenshot 2024-04-17 at 11 35
13\"\r\nsrc=\"a5a89785-71b8-4d77-9423-df573cc21d17\">","sha":"4c09bc938ce1654d0acf40d9a1f881a04ac8b709"}}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
This commit is contained in:
Kibana Machine 2024-04-23 10:21:02 -04:00 committed by GitHub
parent d8c8a5b048
commit fd518fcf46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -240,7 +240,7 @@ describe('LensVisService attributes', () => {
"label": "Top 3 values of extension",
"operationType": "terms",
"params": Object {
"missingBucket": false,
"missingBucket": true,
"orderBy": Object {
"columnId": "count_column",
"type": "column",

View file

@ -378,7 +378,7 @@ export class LensVisService {
},
orderDirection: 'desc',
otherBucket: true,
missingBucket: false,
missingBucket: true,
parentFormat: {
id: 'terms',
},