From 4c09bc938ce1654d0acf40d9a1f881a04ac8b709 Mon Sep 17 00:00:00 2001 From: Julia Rechkunova Date: Tue, 23 Apr 2024 14:55:30 +0200 Subject: [PATCH] [UnifiedHistogram] Improve breakdown chart when values for the field are missing (#181013) ## Summary This PR changes Lens configuration to visualize data even if values for the "Breakdown by" field are not provided. Before: Screenshot 2024-04-17 at 11 34 41 After: Screenshot 2024-04-17 at 11 35 13 --- .../public/services/lens_vis_service.attributes.test.ts | 2 +- .../unified_histogram/public/services/lens_vis_service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/unified_histogram/public/services/lens_vis_service.attributes.test.ts b/src/plugins/unified_histogram/public/services/lens_vis_service.attributes.test.ts index 3703439b32fca..2e4f5a873aeb7 100644 --- a/src/plugins/unified_histogram/public/services/lens_vis_service.attributes.test.ts +++ b/src/plugins/unified_histogram/public/services/lens_vis_service.attributes.test.ts @@ -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", diff --git a/src/plugins/unified_histogram/public/services/lens_vis_service.ts b/src/plugins/unified_histogram/public/services/lens_vis_service.ts index a78d3859da441..a7f75f91d0430 100644 --- a/src/plugins/unified_histogram/public/services/lens_vis_service.ts +++ b/src/plugins/unified_histogram/public/services/lens_vis_service.ts @@ -378,7 +378,7 @@ export class LensVisService { }, orderDirection: 'desc', otherBucket: true, - missingBucket: false, + missingBucket: true, parentFormat: { id: 'terms', },