Skip to content

[Lens][Formatters] Always show missing values instead of nulls#233369

Merged
markov00 merged 34 commits intoelastic:mainfrom
markov00:2025_08_26-align_null_missing_values
Oct 1, 2025
Merged

[Lens][Formatters] Always show missing values instead of nulls#233369
markov00 merged 34 commits intoelastic:mainfrom
markov00:2025_08_26-align_null_missing_values

Conversation

@markov00
Copy link
Contributor

@markov00 markov00 commented Aug 28, 2025

Summary

Close #221155

This PR aligns the formatting for string and numbers when values are null or empty strings.

There where many different places and different formatting logic for these situations, that changes depending on the consumer: many different labels where used in place of these 2 values, like (missing value),Missing, -, -. Same for the empty that sometime it was (empty) and other was just an empty string.

There was also some different displaying logic in charts where the null values where removed from the chart (specially for ESQL).

This PR aligns also the behavior across Discover and Lens when rendering table and across DSL and ESQL, by removing every possible custom behaviour of null/empty handling and moving the handling directly in the formatters.

New labels replacements for null and empty string:

The current alignments are:

  • for null/missing bucket/values -> use the label (null)
  • for empty string -> use the label (blank)
  • for NaN numbers -> use the term NaN

As discussed with the various teams and PMs, we agreed on (null) and (blank) as stated above.
These labels are shorter, understandable (null is aligned with the actual data status, blank instead refers to the absence of text, so an empty string).
The use of the parenthesis is required to improve the readablinty of these values in charts to avoid confusion with other actual labels.

There can be alternatives, but needs to be evaluated with PMs and the Docs team:
- NULL and EMPTY was suggested by the Docs team
- (Missing) and (Blank) are personally suggested by the PR author
The choice really depends on the type of user we are targeting, NULL/EMPTY is more database/SQL oriented where missing/blank is more business oriented.
I also consider blank a better term then empty that could be interpteted as void/missing, where blank instead is related to a string/term rather then a bucket/number.

I also fixed the html conversions, used in tables, to correctly output the styled values.

Changes screenshots

**The below screenshot are outdated, you should consider that instead of (missing value) we are not showing (null) and instead of (empty) we are not showing (blank).

Lens Tables: categorical values

Now DSL and ESQL tables reflects the same labels for null/empty.
The DSL missing value now also uses a specific HTML style

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 10

AFTER:
Screenshot 2025-09-01 at 10 44 25

Lens Tables: numerical breakdown

No major change for DSL charts (is not possible to show missing values when aggregating by terms for numerical values).
ESQL table shows instead the null bucket and renders it with the appropiate label.

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 13

AFTER:
Screenshot 2025-09-01 at 10 44 29

XY charts: categorical breakdown

Breaking down a chart, or using a categorical X axis now shows correctly both empty and null buckets in ESQL charts.

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 17

AFTER:
Screenshot 2025-09-01 at 10 44 33

XY charts: numerical breakdown

Breaking down a chart or using a numerical X axis doesn't have any major change in both DSL/ESQL charts.
DSL can't handle missing values, where ESQL does.

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 25

AFTER:
Screenshot 2025-09-01 at 10 44 39

Visualize breakdowns

This shows that legacy agg-based charts are rendering the two replacement labels correctly now.
The tests also evaluate the custom label that can be configured in the Visualize UI and in the XY expressions to replace the current formatted replacement labels.

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 21

AFTER:
Screenshot 2025-09-01 at 10 44 43

Histogram DSL charts

No major changes here for DSL histograms as it was already showing missing and empty values on both X and Y axis.

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 29

AFTER:
Screenshot 2025-09-01 at 10 44 48

Histogram ESQL charts

The empty label is now visible on the ESQL charts, but I wasn't able to make the missing value appear here.
With a follow up PR I will try to fix that too.

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 32

AFTER:
Screenshot 2025-09-01 at 10 44 52

Partition charts: breakdown by categorical values

ESQL charts are now aligned to the DSL ones, showing correctly both the empty and the missing buckets.

Screenshots

BEFORE:

Screenshot 2025-09-01 at 10 48 36

AFTER:
Screenshot 2025-09-01 at 10 44 56

Partition charts: breakdown by numerical values

Nothing has changed for DSL that doesn't show missing bucket by design. ESQL charts labels are now correctly aligned with the rest of the logics.

Screenshots

BEFORE:
Screenshot 2025-09-01 at 10 48 40

AFTER:
Screenshot 2025-09-01 at 10 45 05

Discover sessions (and also other parts in Discover)

Now also Discover is aligned with the same labeling as in the charts, applying also the right style to these labels.

Screenshots

BEFORE:

Screenshot 2025-09-01 at 10 48 48

AFTER:
Screenshot 2025-09-01 at 10 45 10

For reviewers:

The high number of deletions is due to the replacement of a full FieldFormatterFactory mock with a real FieldFormatter, causing a lot of snapshot tests to be updated with the removal of all the mocks calls.

The data used by the dashboard
POST _bulk
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T01:00:00.000Z", "group": "A", "value": 10 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T02:00:00.000Z", "group": "B", "value": 20 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T03:00:00.000Z", "group": "", "value": 30 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T04:00:00.000Z", "group": null, "value": 5 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T01:30:00.000Z", "group": "A", "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T02:30:00.000Z", "group": "B", "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T03:30:00.000Z", "group": "", "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T04:30:00.000Z", "group": null, "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T01:00:00.000Z", "group": "Y", "value": 0 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T02:00:00.000Z", "group": "Y", "value": 0 }
The NDJSON for the dashboard
{"attributes":{"allowHidden":false,"fieldAttrs":"{}","fieldFormatMap":"{}","fields":"[]","name":"my_new_index","runtimeFieldMap":"{}","sourceFilters":"[]","timeFieldName":"@timestamp","title":"my_new_index"},"coreMigrationVersion":"8.8.0","created_at":"2025-09-01T08:40:04.627Z","created_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","managed":false,"references":[],"type":"index-pattern","typeMigrationVersion":"8.0.0","updated_at":"2025-09-01T08:40:04.627Z","updated_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","version":"WzI0LDFd"}
{"attributes":{"columns":["@timestamp","group.keyword","value"],"description":"","grid":{},"hideChart":false,"isTextBasedQuery":true,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"esql\":\"FROM my_new_index\"},\"index\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false},\"filter\":[]}"},"sort":[["@timestamp","desc"]],"tabs":[{"attributes":{"columns":["@timestamp","group.keyword","value"],"grid":{},"hideChart":false,"isTextBasedQuery":true,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"esql\":\"FROM my_new_index\"},\"index\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false},\"filter\":[]}"},"sort":[["@timestamp","desc"]],"timeRestore":false,"usesAdHocDataView":true},"id":"86df7dc2-3b45-4ce4-a655-8fe004fba2a2","label":"Untitled"}],"timeRestore":false,"title":"Discover Session","usesAdHocDataView":true},"coreMigrationVersion":"8.8.0","created_at":"2025-09-01T08:40:04.627Z","created_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","id":"a2574325-91ef-4b43-93dc-333d8e8acd35","managed":false,"references":[],"type":"search","typeMigrationVersion":"10.6.0","updated_at":"2025-09-01T08:40:04.627Z","updated_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","version":"WzI1LDFd"}
{"attributes":{"controlGroupInput":{"chainingSystem":"HIERARCHICAL","controlStyle":"oneLine","ignoreParentSettingsJSON":"{\"ignoreFilters\":false,\"ignoreQuery\":false,\"ignoreTimerange\":false,\"ignoreValidations\":false}","panelsJSON":"{}","showApplySelections":false},"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"}}"},"optionsJSON":"{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}","panelsJSON":"[{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT group.keyword\"},\"attributes\":{\"title\":\"Bar vertical stacked\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"15061731-5d29-4a72-a567-511cacf8f8b0\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT group.keyword\"},\"columns\":[{\"columnId\":\"9c73d0b6-cedd-4b8d-b756-181fa23f831e\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"}},\"label\":\"group.keyword\"},{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"9c73d0b6-cedd-4b8d-b756-181fa23f831e\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"}},\"label\":\"group.keyword\"},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT group.keyword\"},\"visualization\":{\"layerId\":\"15061731-5d29-4a72-a567-511cacf8f8b0\",\"layerType\":\"data\",\"columns\":[{\"isTransposed\":false,\"columnId\":\"MAX(value)\",\"isMetric\":true},{\"columnId\":\"9c73d0b6-cedd-4b8d-b756-181fa23f831e\",\"isTransposed\":false,\"isMetric\":true}],\"density\":\"compact\"},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsDatatable\"}},\"panelIndex\":\"4da9c34b-6afe-4f1f-95cc-6ac55ec3457b\",\"gridData\":{\"i\":\"4da9c34b-6afe-4f1f-95cc-6ac55ec3457b\",\"y\":0,\"x\":9,\"w\":10,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-5ef6dd1b-61a8-4356-bd27-288616fddf2d\"}],\"state\":{\"visualization\":{\"columns\":[{\"columnId\":\"d7092734-a0b9-40ca-b4f7-d4617a53fecc\",\"isTransposed\":false,\"isMetric\":false},{\"columnId\":\"02549d4c-d438-4a0e-ac77-204a946210d4\",\"isTransposed\":false,\"isMetric\":true}],\"layerId\":\"5ef6dd1b-61a8-4356-bd27-288616fddf2d\",\"layerType\":\"data\",\"density\":\"compact\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"5ef6dd1b-61a8-4356-bd27-288616fddf2d\":{\"columns\":{\"d7092734-a0b9-40ca-b4f7-d4617a53fecc\":{\"label\":\"group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":5,\"orderBy\":{\"type\":\"column\",\"columnId\":\"02549d4c-d438-4a0e-ac77-204a946210d4\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false},\"customLabel\":true},\"02549d4c-d438-4a0e-ac77-204a946210d4\":{\"label\":\"MAX(value)\",\"dataType\":\"number\",\"operationType\":\"max\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true},\"customLabel\":true}},\"columnOrder\":[\"d7092734-a0b9-40ca-b4f7-d4617a53fecc\",\"02549d4c-d438-4a0e-ac77-204a946210d4\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"428d7e3b-a36e-42c7-876c-47fd09c83e6d\",\"gridData\":{\"i\":\"428d7e3b-a36e-42c7-876c-47fd09c83e6d\",\"y\":0,\"x\":0,\"w\":9,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-d3098067-39a1-42fa-9073-5d2aaedcb4a5\"}],\"state\":{\"visualization\":{\"columns\":[{\"columnId\":\"5a0fe080-8e6e-4ad3-b06c-b16bf3524883\",\"isTransposed\":false,\"isMetric\":false},{\"columnId\":\"51fdc920-97cb-49b2-99be-140850076d37\",\"isTransposed\":false,\"isMetric\":true}],\"layerId\":\"d3098067-39a1-42fa-9073-5d2aaedcb4a5\",\"layerType\":\"data\",\"density\":\"compact\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"d3098067-39a1-42fa-9073-5d2aaedcb4a5\":{\"columns\":{\"5a0fe080-8e6e-4ad3-b06c-b16bf3524883\":{\"label\":\"Top value\",\"dataType\":\"number\",\"operationType\":\"terms\",\"sourceField\":\"value\",\"isBucketed\":true,\"params\":{\"size\":100,\"orderBy\":{\"type\":\"column\",\"columnId\":\"51fdc920-97cb-49b2-99be-140850076d37\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false},\"customLabel\":true},\"51fdc920-97cb-49b2-99be-140850076d37\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"5a0fe080-8e6e-4ad3-b06c-b16bf3524883\",\"51fdc920-97cb-49b2-99be-140850076d37\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"1cf81889-cda0-423d-bfbd-8eb3e1cac28a\",\"gridData\":{\"i\":\"1cf81889-cda0-423d-bfbd-8eb3e1cac28a\",\"y\":0,\"x\":26,\"w\":10,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value | SORT value ASC NULLS FIRST\"},\"attributes\":{\"title\":\"COUNT(*) & value of (empty)\",\"references\":[],\"state\":{\"visualization\":{\"layerId\":\"c6d47253-d434-4b57-8ac8-7ebfa4f3b144\",\"layerType\":\"data\",\"columns\":[{\"isTransposed\":false,\"columnId\":\"COUNT(*)\",\"isMetric\":true},{\"columnId\":\"value\"}],\"density\":\"compact\"},\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value | SORT value ASC NULLS FIRST\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"c6d47253-d434-4b57-8ac8-7ebfa4f3b144\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value | SORT value ASC NULLS FIRST\"},\"columns\":[{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-c6d47253-d434-4b57-8ac8-7ebfa4f3b144\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\"}},\"panelIndex\":\"e1b5aeb6-bea2-4e18-8fb1-3886f921fdac\",\"gridData\":{\"i\":\"e1b5aeb6-bea2-4e18-8fb1-3886f921fdac\",\"y\":0,\"x\":36,\"w\":12,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-6d0e701e-2292-4c54-84aa-8f6d95adf7a5\"}],\"state\":{\"visualization\":{\"title\":\"Empty XY chart\",\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"6d0e701e-2292-4c54-84aa-8f6d95adf7a5\",\"accessors\":[\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\"],\"position\":\"top\",\"seriesType\":\"bar_horizontal_stacked\",\"showGridlines\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}},\"xAccessor\":\"e7eba242-7626-425e-82d4-88a8a2634fbc\"}],\"axisTitlesVisibilitySettings\":{\"x\":false,\"yLeft\":true,\"yRight\":true}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"6d0e701e-2292-4c54-84aa-8f6d95adf7a5\":{\"columns\":{\"e7eba242-7626-425e-82d4-88a8a2634fbc\":{\"label\":\"Top 5 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":5,\"orderBy\":{\"type\":\"column\",\"columnId\":\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\":{\"label\":\"Maximum of value\",\"dataType\":\"number\",\"operationType\":\"max\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"e7eba242-7626-425e-82d4-88a8a2634fbc\",\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"6d443bc6-8206-4272-b542-c3838c4481e7\",\"gridData\":{\"i\":\"6d443bc6-8206-4272-b542-c3838c4481e7\",\"y\":0,\"x\":0,\"w\":9,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT `MAX(value)` DESC\"},\"attributes\":{\"title\":\"Bar vertical stacked\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"a2ac5814-e6f4-4f5b-95d6-b43bc196ee0e\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT `MAX(value)` DESC\"},\"columns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"customLabel\":false,\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}],\"timeField\":\"@timestamp\"}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT `MAX(value)` DESC\"},\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"Linear\",\"axisTitlesVisibilitySettings\":{\"x\":false,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"a2ac5814-e6f4-4f5b-95d6-b43bc196ee0e\",\"seriesType\":\"bar_horizontal_stacked\",\"xAccessor\":\"group.keyword\",\"accessors\":[\"MAX(value)\"],\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsXY\"}},\"panelIndex\":\"5380f21a-7291-4fcc-84df-a836141c4e46\",\"gridData\":{\"i\":\"5380f21a-7291-4fcc-84df-a836141c4e46\",\"y\":0,\"x\":9,\"w\":10,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-cb5bdad9-fe37-4672-9c3c-f73d008e4c3e\"}],\"state\":{\"visualization\":{\"title\":\"Empty XY chart\",\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"cb5bdad9-fe37-4672-9c3c-f73d008e4c3e\",\"accessors\":[\"992e3924-b037-45a1-a77a-e125163adc13\"],\"position\":\"top\",\"seriesType\":\"bar_horizontal_stacked\",\"showGridlines\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}},\"xAccessor\":\"cca85e86-6d79-4a77-80e4-e141686aeb40\"}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"cb5bdad9-fe37-4672-9c3c-f73d008e4c3e\":{\"columns\":{\"cca85e86-6d79-4a77-80e4-e141686aeb40\":{\"label\":\"Top 10 values of value\",\"dataType\":\"number\",\"operationType\":\"terms\",\"sourceField\":\"value\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"992e3924-b037-45a1-a77a-e125163adc13\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"992e3924-b037-45a1-a77a-e125163adc13\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"cca85e86-6d79-4a77-80e4-e141686aeb40\",\"992e3924-b037-45a1-a77a-e125163adc13\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"68520e32-f931-4716-aa20-7a1e27933961\",\"gridData\":{\"i\":\"68520e32-f931-4716-aa20-7a1e27933961\",\"y\":0,\"x\":26,\"w\":10,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"attributes\":{\"title\":\"COUNT(*) & value of (empty)\",\"references\":[],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"Linear\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"92af237a-4539-4054-8e80-3a07e433a0be\",\"seriesType\":\"bar_horizontal_stacked\",\"xAccessor\":\"947d01d9-1f92-480d-81a9-9e79841e71a2\",\"accessors\":[\"COUNT(*)\"],\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"92af237a-4539-4054-8e80-3a07e433a0be\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"columns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"947d01d9-1f92-480d-81a9-9e79841e71a2\",\"fieldName\":\"value\",\"meta\":{\"type\":\"number\",\"esType\":\"long\"}}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-92af237a-4539-4054-8e80-3a07e433a0be\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsXY\",\"type\":\"lens\"}},\"panelIndex\":\"c1bcc9a5-5170-4e66-a1ae-dfe4e7b48151\",\"gridData\":{\"i\":\"c1bcc9a5-5170-4e66-a1ae-dfe4e7b48151\",\"y\":0,\"x\":36,\"w\":12,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"visualization\",\"embeddableConfig\":{\"title\":\"Visualize\",\"description\":\"\",\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"savedVis\":{\"title\":\"\",\"description\":\"\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":false},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"filter\":true,\"truncate\":100},\"title\":{},\"style\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":true,\"truncate\":100},\"title\":{\"text\":\"\"},\"style\":{}}],\"seriesParams\":[{\"show\":true,\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"Count\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"lineWidth\":2,\"interpolate\":\"linear\",\"showCircles\":true,\"circlesRadius\":1}],\"addTooltip\":true,\"detailedTooltip\":true,\"palette\":{\"type\":\"palette\",\"name\":\"default\"},\"addLegend\":true,\"legendPosition\":\"right\",\"fittingFunction\":\"linear\",\"times\":[],\"addTimeMarker\":false,\"truncateLegend\":true,\"maxLegendLines\":1,\"labels\":{},\"radiusRatio\":9,\"thresholdLine\":{\"show\":false,\"value\":10,\"width\":1,\"style\":\"full\",\"color\":\"#FCD883\"},\"row\":true},\"uiState\":{},\"data\":{\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"params\":{\"emptyAsNull\":false},\"schema\":\"metric\"},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"params\":{\"field\":\"group.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":5,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":true,\"missingBucketLabel\":\"\",\"includeIsRegex\":true,\"excludeIsRegex\":true},\"schema\":\"split\"},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"params\":{\"field\":\"group.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":5,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":true,\"missingBucketLabel\":\"\",\"includeIsRegex\":true,\"excludeIsRegex\":true},\"schema\":\"group\"}],\"searchSource\":{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[],\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\"}}}},\"panelIndex\":\"39cdb9f2-575f-40b5-8d12-7734c495d040\",\"gridData\":{\"i\":\"39cdb9f2-575f-40b5-8d12-7734c495d040\",\"y\":0,\"x\":19,\"w\":7,\"h\":15,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsHeatmap\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-db3105f8-023d-4109-af6b-bee449289a70\"}],\"state\":{\"visualization\":{\"layerId\":\"db3105f8-023d-4109-af6b-bee449289a70\",\"layerType\":\"data\",\"title\":\"Empty Heatmap chart\",\"shape\":\"heatmap\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"maxLines\":1,\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":true,\"isXAxisTitleVisible\":true},\"xAccessor\":\"6ba133ff-2e44-4081-ac51-5e9403f89612\",\"yAccessor\":\"cfcbc481-46f8-41f5-b8d4-9f87e328b0f2\",\"valueAccessor\":\"67727602-1b86-4d2f-902e-2928b553f1ac\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"db3105f8-023d-4109-af6b-bee449289a70\":{\"columns\":{\"6ba133ff-2e44-4081-ac51-5e9403f89612\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"params\":{\"interval\":\"d\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"cfcbc481-46f8-41f5-b8d4-9f87e328b0f2\":{\"label\":\"Top 4 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":4,\"orderBy\":{\"type\":\"column\",\"columnId\":\"67727602-1b86-4d2f-902e-2928b553f1ac\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"67727602-1b86-4d2f-902e-2928b553f1ac\":{\"label\":\"Median of value\",\"dataType\":\"number\",\"operationType\":\"median\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"6ba133ff-2e44-4081-ac51-5e9403f89612\",\"cfcbc481-46f8-41f5-b8d4-9f87e328b0f2\",\"67727602-1b86-4d2f-902e-2928b553f1ac\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"d3695c1f-bc44-4dd0-b2d7-b92dc0fd2725\",\"gridData\":{\"i\":\"d3695c1f-bc44-4dd0-b2d7-b92dc0fd2725\",\"y\":8,\"x\":0,\"w\":19,\"h\":7,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"attributes\":{\"title\":\"MAX(value) over BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"114dfce6-87f3-43f2-8a05-016023a26743\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"columns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"fieldName\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"label\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"customLabel\":false,\"meta\":{\"type\":\"date\",\"esType\":\"date\"}},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"customLabel\":false,\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}],\"timeField\":\"@timestamp\"}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"visualization\":{\"shape\":\"heatmap\",\"layerId\":\"114dfce6-87f3-43f2-8a05-016023a26743\",\"layerType\":\"data\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":false,\"isXAxisTitleVisible\":false},\"valueAccessor\":\"MAX(value)\",\"xAccessor\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"yAccessor\":\"group.keyword\"},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsHeatmap\"}},\"panelIndex\":\"d8e5ccaa-05ab-4170-a978-26bf18a92d84\",\"gridData\":{\"i\":\"d8e5ccaa-05ab-4170-a978-26bf18a92d84\",\"y\":8,\"x\":19,\"w\":22,\"h\":7,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"attributes\":{\"title\":\"MAX(value) over BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"references\":[],\"state\":{\"visualization\":{\"shape\":\"heatmap\",\"layerId\":\"1744c50e-d135-4cdd-9423-fbb867d62b84\",\"layerType\":\"data\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":false,\"isXAxisTitleVisible\":false},\"valueAccessor\":\"MAX(value)\",\"xAccessor\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"yAccessor\":\"873d200b-9829-47ea-a73a-1ad2ecf3f94b\"},\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"1744c50e-d135-4cdd-9423-fbb867d62b84\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"columns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"},\"params\":{\"id\":\"string\"}}},{\"columnId\":\"873d200b-9829-47ea-a73a-1ad2ecf3f94b\",\"fieldName\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"meta\":{\"type\":\"date\",\"esType\":\"date\"}}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"fieldName\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"label\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"customLabel\":false,\"meta\":{\"type\":\"date\",\"esType\":\"date\"}},{\"columnId\":\"873d200b-9829-47ea-a73a-1ad2ecf3f94b\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"},\"params\":{\"id\":\"string\"}},\"label\":\"group.keyword\"}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-1744c50e-d135-4cdd-9423-fbb867d62b84\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsHeatmap\",\"type\":\"lens\"}},\"panelIndex\":\"9c478c0b-0ed4-45e6-ae88-76148bfb5ca8\",\"gridData\":{\"i\":\"9c478c0b-0ed4-45e6-ae88-76148bfb5ca8\",\"y\":0,\"x\":19,\"w\":22,\"h\":8,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsHeatmap\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-5fd27b0d-5aa8-4188-abba-4aa6fdbf6556\"}],\"state\":{\"visualization\":{\"layerId\":\"5fd27b0d-5aa8-4188-abba-4aa6fdbf6556\",\"layerType\":\"data\",\"title\":\"Empty Heatmap chart\",\"shape\":\"heatmap\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"maxLines\":1,\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":true,\"isXAxisTitleVisible\":true},\"xAccessor\":\"52ed992c-75b0-4f3d-9d8d-6368a66a0095\",\"yAccessor\":\"37213e11-3db7-416f-81b8-d78e361a74ee\",\"valueAccessor\":\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"5fd27b0d-5aa8-4188-abba-4aa6fdbf6556\":{\"columns\":{\"52ed992c-75b0-4f3d-9d8d-6368a66a0095\":{\"label\":\"Top 4 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":4,\"orderBy\":{\"type\":\"column\",\"columnId\":\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"37213e11-3db7-416f-81b8-d78e361a74ee\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"params\":{\"interval\":\"d\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\":{\"label\":\"Median of value\",\"dataType\":\"number\",\"operationType\":\"median\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"52ed992c-75b0-4f3d-9d8d-6368a66a0095\",\"37213e11-3db7-416f-81b8-d78e361a74ee\",\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"d0a23fd1-3116-4e71-85f0-0dbc87ab145a\",\"gridData\":{\"i\":\"d0a23fd1-3116-4e71-85f0-0dbc87ab145a\",\"y\":0,\"x\":0,\"w\":19,\"h\":8,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS AVG(value) BY group.keyword | SORT `AVG(value)`\"},\"attributes\":{\"title\":\"Bar vertical stacked\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"42f6729c-512f-4e83-bf12-984b58b2d7d6\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS AVG(value) BY group.keyword | SORT `AVG(value)`\"},\"columns\":[{\"columnId\":\"AVG(value)\",\"fieldName\":\"AVG(value)\",\"label\":\"AVG(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"double\"},\"inMetricDimension\":true},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"customLabel\":false,\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}],\"timeField\":\"@timestamp\"}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS AVG(value) BY group.keyword | SORT `AVG(value)`\"},\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"42f6729c-512f-4e83-bf12-984b58b2d7d6\",\"primaryGroups\":[\"group.keyword\"],\"metrics\":[\"AVG(value)\"],\"numberDisplay\":\"percent\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsPie\"}},\"panelIndex\":\"02302c92-e7ac-47bc-8e40-7e66d0dd2448\",\"gridData\":{\"i\":\"02302c92-e7ac-47bc-8e40-7e66d0dd2448\",\"y\":0,\"x\":11,\"w\":12,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsPie\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-44cc4e6d-fffc-49be-89f9-9c936e08eedb\"}],\"state\":{\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"44cc4e6d-fffc-49be-89f9-9c936e08eedb\",\"primaryGroups\":[\"a5cfe5c3-a9a8-4cd5-af4f-150aff3fa194\"],\"metrics\":[\"508d19ad-ed93-4dc9-b86b-1b03fced79da\"],\"numberDisplay\":\"percent\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"44cc4e6d-fffc-49be-89f9-9c936e08eedb\":{\"columns\":{\"a5cfe5c3-a9a8-4cd5-af4f-150aff3fa194\":{\"label\":\"Top 5 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":5,\"orderBy\":{\"type\":\"column\",\"columnId\":\"508d19ad-ed93-4dc9-b86b-1b03fced79da\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"508d19ad-ed93-4dc9-b86b-1b03fced79da\":{\"label\":\"Average of value\",\"dataType\":\"number\",\"operationType\":\"average\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"a5cfe5c3-a9a8-4cd5-af4f-150aff3fa194\",\"508d19ad-ed93-4dc9-b86b-1b03fced79da\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"02fc3314-c476-4c19-b1fd-c105b5f21693\",\"gridData\":{\"i\":\"02fc3314-c476-4c19-b1fd-c105b5f21693\",\"y\":0,\"x\":0,\"w\":11,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"attributes\":{\"title\":\"COUNT(*) & value of (empty)\",\"references\":[],\"state\":{\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"8f3c1d7f-1205-4fef-ad96-25a0e27adb50\",\"primaryGroups\":[\"value\"],\"metrics\":[\"COUNT(*)\"],\"numberDisplay\":\"percent\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"8f3c1d7f-1205-4fef-ad96-25a0e27adb50\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"columns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}],\"timeField\":\"@timestamp\"}}}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-8f3c1d7f-1205-4fef-ad96-25a0e27adb50\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsPie\",\"type\":\"lens\"}},\"panelIndex\":\"04ab9724-68aa-4a12-bd46-a16ad8fa973c\",\"gridData\":{\"i\":\"04ab9724-68aa-4a12-bd46-a16ad8fa973c\",\"y\":0,\"x\":36,\"w\":11,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsPie\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-b2d3cea3-4d18-47e1-a8f2-4c407c21b69c\"}],\"state\":{\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"b2d3cea3-4d18-47e1-a8f2-4c407c21b69c\",\"primaryGroups\":[\"31e3cfac-ab61-473b-bcb9-1f3dacfc0e44\"],\"metrics\":[\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\"],\"numberDisplay\":\"value\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"b2d3cea3-4d18-47e1-a8f2-4c407c21b69c\":{\"columns\":{\"31e3cfac-ab61-473b-bcb9-1f3dacfc0e44\":{\"label\":\"Top 10 values of value\",\"dataType\":\"number\",\"operationType\":\"terms\",\"sourceField\":\"value\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"31e3cfac-ab61-473b-bcb9-1f3dacfc0e44\",\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"445e0655-89a9-4c58-809f-f3054d1475b7\",\"gridData\":{\"i\":\"445e0655-89a9-4c58-809f-f3054d1475b7\",\"y\":0,\"x\":26,\"w\":10,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"search\",\"embeddableConfig\":{},\"panelIndex\":\"cc6b459e-7304-4ae8-96ac-a284003e6fde\",\"gridData\":{\"i\":\"cc6b459e-7304-4ae8-96ac-a284003e6fde\",\"y\":0,\"x\":1,\"w\":23,\"h\":12,\"sectionId\":\"1b0e444b-f9a6-4d47-9cb5-013ca5b32f78\"}}]","sections":[{"collapsed":false,"gridData":{"i":"7a585c7e-5210-430f-a021-7e5ef3b212db","y":0},"title":"Table"},{"collapsed":false,"gridData":{"i":"d38da6ec-ef17-4259-bc91-d4d33ef6270d","y":1},"title":"XY"},{"collapsed":false,"gridData":{"i":"ea6bfddc-8052-48e6-9f8d-55458bfa88dd","y":2},"title":"Heatmap"},{"collapsed":false,"gridData":{"i":"4ca44f9b-1232-42ee-80cf-7f162e47de19","y":3},"title":"Pie"},{"collapsed":false,"gridData":{"i":"1b0e444b-f9a6-4d47-9cb5-013ca5b32f78","y":4},"title":"Discover"},{"collapsed":true,"gridData":{"i":"915f9e01-18be-4b15-ac71-da7e3fb95c10","y":5},"title":"testing"}],"timeRestore":false,"title":"Null Values","version":1},"coreMigrationVersion":"8.8.0","created_at":"2025-09-01T09:42:11.867Z","created_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","id":"3c9d0c5c-48ca-402d-b8ca-7542572bbb0a","managed":false,"references":[{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"428d7e3b-a36e-42c7-876c-47fd09c83e6d:indexpattern-datasource-layer-5ef6dd1b-61a8-4356-bd27-288616fddf2d","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"1cf81889-cda0-423d-bfbd-8eb3e1cac28a:indexpattern-datasource-layer-d3098067-39a1-42fa-9073-5d2aaedcb4a5","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"6d443bc6-8206-4272-b542-c3838c4481e7:indexpattern-datasource-layer-6d0e701e-2292-4c54-84aa-8f6d95adf7a5","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"68520e32-f931-4716-aa20-7a1e27933961:indexpattern-datasource-layer-cb5bdad9-fe37-4672-9c3c-f73d008e4c3e","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"39cdb9f2-575f-40b5-8d12-7734c495d040:kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"d3695c1f-bc44-4dd0-b2d7-b92dc0fd2725:indexpattern-datasource-layer-db3105f8-023d-4109-af6b-bee449289a70","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"d0a23fd1-3116-4e71-85f0-0dbc87ab145a:indexpattern-datasource-layer-5fd27b0d-5aa8-4188-abba-4aa6fdbf6556","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"02fc3314-c476-4c19-b1fd-c105b5f21693:indexpattern-datasource-layer-44cc4e6d-fffc-49be-89f9-9c936e08eedb","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"445e0655-89a9-4c58-809f-f3054d1475b7:indexpattern-datasource-layer-b2d3cea3-4d18-47e1-a8f2-4c407c21b69c","type":"index-pattern"},{"id":"a2574325-91ef-4b43-93dc-333d8e8acd35","name":"cc6b459e-7304-4ae8-96ac-a284003e6fde:savedObjectRef","type":"search"}],"type":"dashboard","typeMigrationVersion":"10.3.0","updated_at":"2025-09-01T09:42:11.867Z","updated_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","version":"WzMzLDFd"}
{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":3,"missingRefCount":0,"missingReferences":[]}

Release note

Null buckets and empty string values are now rendered in the UI as (missing value) and (empty) respectively. This is now aligned across charts and tables, including Discover and Lens charts.

@markov00 markov00 marked this pull request as ready for review September 1, 2025 09:56
@markov00 markov00 requested review from a team as code owners September 1, 2025 09:56
@markov00 markov00 added release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// backport:skip This PR does not require backporting labels Sep 1, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I played with it Marco, looks really nice and I cant see any regression tbh. Only one question about the esql response change from me. Other than that it looks great

Copy link
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on it, @markov00!

@markov00 markov00 requested a review from a team as a code owner September 23, 2025 08:11
Copy link
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, @markov00!

Discover-related changes LGTM 👍

{
"type": "shared-common",
"id": "@kbn/field-formats-common",
"owner": "@elastic/kibana-visualizations",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating a new package!

Suggested change
"owner": "@elastic/kibana-visualizations",
"owner": [
"@elastic/kibana-visualizations",
"@elastic/kibana-data-discovery"
],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, happy to share the ownership a1ae9aa

description: 'Represents the label used to replace an empty string value in tables and charts',
});

export const NULL_LABEL = i18n.translate('fieldFormats.nullLabel', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also need to update .i18nrc.json now with the following:

"fieldFormats": [
  "src/platform/plugins/shared/field_formats",
  "src/platform/packages/shared/kbn-field-formats-common"
],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in a1ae9aa thank you , I didn't know about this. I hope it was automated

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/platform/test/tsconfig.json and x-pack/platform/test/tsconfig.json changes LGTM

description: 'Represents the label used to replace an null value in tables and charts',
});

export const NAN_LABEL = 'NaN';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says

for NaN numbers -> use the term N/A

just to clarify, it makes more sense like it's here in the code, is just the PR description outdated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description outdated, updated right now

expect(layer.showAccessor?.(visDataWithNullValues.rows[0]['col-0-2'])).toEqual(true);
expect(layer.nodeLabel?.(visDataWithNullValues.rows[0]['col-0-2'])).toEqual('Null Airways');
expect(layer.showAccessor?.(visDataWithNullValues.rows[0].category)).toEqual(true);
expect(layer.nodeLabel?.(visDataWithNullValues.rows[0].category)).toEqual(EMPTY_LABEL);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: There's pros/cons about asserting against the defined const and not the raw string. toEqual(EMPTY_LABEL); is easier to maintain. but toEqual('(blank)') makes the expected outcome more obvious. if EMPTY_LABEL would ever change, the assertions need updating, but it would also make it more obvious in git diffs which updates are affected. using the raw string in the assertions also would protect against accidental changes/typos in the const.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, I can bring this back in a different PR

)
);

// const formatFactory = (mapping?: SerializedFieldFormat) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to keep this commented code around or is it good to remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static title = 'UpperCaseString';

htmlConvert = (value: string) => `<span>${value.toUpperCase()}</span>`;
// we need to catch possible null values and blocks them before running the transformation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Typo blocks -> block.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@dej611 dej611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally 👍

Left some minor comments, but it looks good overall.

description: 'Represents the label used to replace an null value in tables and charts',
});

export const NAN_LABEL = 'NaN';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be i18n as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I believe NaN is international at this point :D

))
);
if (!isDataLayer(layer) && !isReferenceLayer(layer)) return false;
return layer.accessors.length > 0 && layer.table && layer.table.rows.length > 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
return layer.accessors.length > 0 && layer.table && layer.table.rows.length > 0;
return layer.accessors.length > 0 && layer.table?.rows.length > 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markov00 markov00 enabled auto-merge (squash) October 1, 2025 14:11
@markov00 markov00 merged commit 3d0320d into elastic:main Oct 1, 2025
14 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
aiops 603 605 +2
apm 2011 2013 +2
charts 159 161 +2
data 507 509 +2
discover 1610 1612 +2
eventAnnotationListing 572 574 +2
expressionGauge 186 188 +2
expressionHeatmap 190 192 +2
expressionLegacyMetricVis 143 145 +2
expressionMetricVis 144 146 +2
expressionPartitionVis 217 219 +2
expressionTagcloud 179 181 +2
expressionXY 265 267 +2
fieldFormats 57 59 +2
infra 1588 1590 +2
lens 1416 1418 +2
ml 2537 2539 +2
observability 1508 1510 +2
securitySolution 8287 8289 +2
slo 1269 1271 +2
transform 796 798 +2
visDefaultEditor 227 229 +2
visTypeTimeseries 408 410 +2
visualizations 548 550 +2
total +48

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/field-formats-common - 4 +4

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
fieldFormats 5 6 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiops 525.2KB 525.4KB +237.0B
apm 2.7MB 2.7MB +237.0B
data 21.8KB 21.8KB -5.0B
discover 1.2MB 1.2MB +237.0B
expressionPartitionVis 37.9KB 37.8KB -127.0B
expressionXY 100.0KB 99.6KB -423.0B
lens 1.5MB 1.5MB -44.0B
ml 5.4MB 5.4MB +237.0B
securitySolution 11.1MB 11.1MB +237.0B
slo 973.9KB 974.1KB +237.0B
transform 623.0KB 623.3KB +237.0B
total +1.0KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 433.7KB 433.9KB +206.0B
fieldFormats 57.5KB 58.0KB +437.0B
total +643.0B
Unknown metric groups

API count

id before after diff
@kbn/field-formats-common - 4 +4

History

rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
…ic#233369)

## Summary

Close https://github.com/elastic/kibana/issues/221155


This PR aligns the formatting for string and numbers when values are
null or empty strings.

There where many different places and different formatting logic for
these situations, that changes depending on the consumer: many different
labels where used in place of these 2 values, like `(missing
value)`,`Missing`, ` - `, `-`. Same for the empty that sometime it was
`(empty)` and other was just an empty string.

There was also some different displaying logic in charts where the null
values where removed from the chart (specially for ESQL).

This PR aligns also the behavior across Discover and Lens when rendering
table and across DSL and ESQL, by removing every possible custom
behaviour of null/empty handling and moving the handling directly in the
formatters.



## New labels replacements for null and empty string:

The current alignments are:

- for null/missing bucket/values  -> use the label `(null)`
- for empty string -> use the label `(blank)`
- for NaN numbers -> use the term `NaN`

As discussed with the various teams and PMs, we agreed on `(null)` and
`(blank)` as stated above.
These labels are shorter, understandable (null is aligned with the
actual data status, blank instead refers to the absence of text, so an
empty string).
The use of the parenthesis is required to improve the readablinty of
these values in charts to avoid confusion with other actual labels.

~~There can be alternatives, but needs to be evaluated with PMs and the
Docs team:~~
~~- `NULL` and `EMPTY` was suggested by the Docs team~~
~~- `(Missing)` and `(Blank)` are personally suggested by the PR
author~~
~~The choice really depends on the type of user we are targeting,
NULL/EMPTY is more database/SQL oriented where missing/blank is more
business oriented.
I also consider `blank` a better term then `empty` that could be
interpteted as void/missing, where blank instead is related to a
string/term rather then a bucket/number.~~






I also fixed the html conversions, used in tables, to correctly output
the styled values.

## Changes screenshots

**The below screenshot are outdated, you should consider that instead of
`(missing value)` we are not showing `(null)` and instead of `(empty)`
we are not showing `(blank)`.


### Lens Tables: categorical values

Now DSL and ESQL tables reflects the same labels for null/empty.
The DSL missing value now also uses a specific HTML style

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="1015" height="242" alt="Screenshot 2025-09-01 at 10 48 10"
src="https://github.com/user-attachments/assets/0646fad7-339f-4f52-8047-fc95aa874b30"
/>


**AFTER:**
<img width="1015" height="249" alt="Screenshot 2025-09-01 at 10 44 25"
src="https://github.com/user-attachments/assets/1b743861-f469-4b89-a0dd-1aee32bc77b2"
/>

</details>



### Lens Tables: numerical breakdown

No major change for DSL charts (is not possible to show missing values
when aggregating by terms for numerical values).
ESQL table shows instead the null bucket and renders it with the
appropiate label.

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="1174" height="240" alt="Screenshot 2025-09-01 at 10 48 13"
src="https://github.com/user-attachments/assets/3d3ddb68-61c6-4085-aaee-478be6ff4ee0"
/>


**AFTER:**
<img width="1176" height="245" alt="Screenshot 2025-09-01 at 10 44 29"
src="https://github.com/user-attachments/assets/d0b6dbef-b492-4da3-9e67-19a9bf36c2a8"
/>

</details>


### XY charts: categorical breakdown

Breaking down a chart, or using a categorical X axis now shows correctly
both empty and null buckets in ESQL charts.

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="1008" height="295" alt="Screenshot 2025-09-01 at 10 48 17"
src="https://github.com/user-attachments/assets/7c05519e-8c62-4fa6-92a4-f729cdfce705"
/>


**AFTER:**
<img width="1007" height="316" alt="Screenshot 2025-09-01 at 10 44 33"
src="https://github.com/user-attachments/assets/779a5fef-7cd9-4504-a493-b795167d632a"
/>

</details>



### XY charts: numerical breakdown

Breaking down a chart or using a numerical X axis doesn't have any major
change in both DSL/ESQL charts.
DSL can't handle missing values, where ESQL does.

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="1173" height="290" alt="Screenshot 2025-09-01 at 10 48 25"
src="https://github.com/user-attachments/assets/d3d413c6-fd70-4b72-a13d-7daa8480e2b3"
/>


**AFTER:**
<img width="1174" height="289" alt="Screenshot 2025-09-01 at 10 44 39"
src="https://github.com/user-attachments/assets/a3df5ae9-ec38-412d-96f0-b766a9aaccd8"
/>

</details>



### Visualize breakdowns

This shows that legacy agg-based charts are rendering the two
replacement labels correctly now.
The tests also evaluate the custom label that can be configured in the
Visualize UI and in the XY expressions to replace the current formatted
replacement labels.

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="372" height="445" alt="Screenshot 2025-09-01 at 10 48 21"
src="https://github.com/user-attachments/assets/e33b539b-585b-4722-869d-d4fd7cd682a9"
/>


**AFTER:**
<img width="379" height="437" alt="Screenshot 2025-09-01 at 10 44 43"
src="https://github.com/user-attachments/assets/7db86c1b-6110-4012-bad0-19526102775d"
/>

</details>




### Histogram DSL charts

No major changes here for DSL histograms as it was already showing
missing and empty values on both X and Y axis.

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="1009" height="442" alt="Screenshot 2025-09-01 at 10 48 29"
src="https://github.com/user-attachments/assets/52519a34-a76d-4a09-96db-a9acb53f117c"
/>


**AFTER:**
<img width="1009" height="441" alt="Screenshot 2025-09-01 at 10 44 48"
src="https://github.com/user-attachments/assets/45e53797-07d9-4a80-bed4-d58959286aa6"
/>

</details>



### Histogram ESQL charts

The empty label is now visible on the ESQL charts, but I wasn't able to
make the missing value appear here.
With a follow up PR I will try to fix that too.

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="1183" height="442" alt="Screenshot 2025-09-01 at 10 48 32"
src="https://github.com/user-attachments/assets/2839ff92-d9eb-4cd1-8326-603078da43d2"
/>

**AFTER:**
<img width="1170" height="442" alt="Screenshot 2025-09-01 at 10 44 52"
src="https://github.com/user-attachments/assets/8920a837-04fc-4f87-9725-50659e14ec50"
/>

</details>



### Partition charts: breakdown by categorical values

ESQL charts are now aligned to the DSL ones, showing correctly both the
empty and the missing buckets.

<details>
<summary>Screenshots </summary>

**BEFORE:**

<img width="1228" height="325" alt="Screenshot 2025-09-01 at 10 48 36"
src="https://github.com/user-attachments/assets/4016fb37-2ac9-42a2-b142-039e5c6b1f61"
/>

**AFTER:**
<img width="1227" height="324" alt="Screenshot 2025-09-01 at 10 44 56"
src="https://github.com/user-attachments/assets/1e6632de-9aae-44ea-828a-c0a3230cab94"
/>

</details>

### Partition charts: breakdown by numerical values

Nothing has changed for DSL that doesn't show missing bucket by design.
ESQL charts labels are now correctly aligned with the rest of the
logics.

<details>
<summary>Screenshots </summary>

**BEFORE:**
<img width="1148" height="327" alt="Screenshot 2025-09-01 at 10 48 40"
src="https://github.com/user-attachments/assets/3864c255-eb81-4537-aa5b-dd85b316f924"
/>


**AFTER:**
<img width="1122" height="317" alt="Screenshot 2025-09-01 at 10 45 05"
src="https://github.com/user-attachments/assets/c893dba6-d9b6-41aa-bdb0-ec524babfd7e"
/>

</details>

### Discover sessions (and also other parts in Discover)

Now also Discover is aligned with the same labeling as in the charts,
applying also the right style to these labels.

<details>
<summary>Screenshots </summary>

**BEFORE:**

<img width="1227" height="353" alt="Screenshot 2025-09-01 at 10 48 48"
src="https://github.com/user-attachments/assets/ad0e1099-bc8e-4f15-8e91-01aca32d7e09"
/>

**AFTER:**
<img width="1220" height="353" alt="Screenshot 2025-09-01 at 10 45 10"
src="https://github.com/user-attachments/assets/3791195d-6df7-42ae-9d94-0667299b937f"
/>

</details>


## For reviewers:

The high number of deletions is due to the replacement of a full
FieldFormatterFactory mock with a real FieldFormatter, causing a lot of
snapshot tests to be updated with the removal of all the mocks calls.


<details>
<summary>The data used by the dashboard</summary>

```
POST _bulk
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T01:00:00.000Z", "group": "A", "value": 10 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T02:00:00.000Z", "group": "B", "value": 20 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T03:00:00.000Z", "group": "", "value": 30 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T04:00:00.000Z", "group": null, "value": 5 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T01:30:00.000Z", "group": "A", "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T02:30:00.000Z", "group": "B", "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T03:30:00.000Z", "group": "", "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T04:30:00.000Z", "group": null, "value": null }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T01:00:00.000Z", "group": "Y", "value": 0 }
{ "index": { "_index": "my_new_index" } }
{ "@timestamp": "2025-07-31T02:00:00.000Z", "group": "Y", "value": 0 }
```

</details>


<details>
<summary>The NDJSON for the dashboard</summary>

```JSON

{"attributes":{"allowHidden":false,"fieldAttrs":"{}","fieldFormatMap":"{}","fields":"[]","name":"my_new_index","runtimeFieldMap":"{}","sourceFilters":"[]","timeFieldName":"@timestamp","title":"my_new_index"},"coreMigrationVersion":"8.8.0","created_at":"2025-09-01T08:40:04.627Z","created_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","managed":false,"references":[],"type":"index-pattern","typeMigrationVersion":"8.0.0","updated_at":"2025-09-01T08:40:04.627Z","updated_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","version":"WzI0LDFd"}
{"attributes":{"columns":["@timestamp","group.keyword","value"],"description":"","grid":{},"hideChart":false,"isTextBasedQuery":true,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"esql\":\"FROM my_new_index\"},\"index\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false},\"filter\":[]}"},"sort":[["@timestamp","desc"]],"tabs":[{"attributes":{"columns":["@timestamp","group.keyword","value"],"grid":{},"hideChart":false,"isTextBasedQuery":true,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"esql\":\"FROM my_new_index\"},\"index\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false},\"filter\":[]}"},"sort":[["@timestamp","desc"]],"timeRestore":false,"usesAdHocDataView":true},"id":"86df7dc2-3b45-4ce4-a655-8fe004fba2a2","label":"Untitled"}],"timeRestore":false,"title":"Discover Session","usesAdHocDataView":true},"coreMigrationVersion":"8.8.0","created_at":"2025-09-01T08:40:04.627Z","created_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","id":"a2574325-91ef-4b43-93dc-333d8e8acd35","managed":false,"references":[],"type":"search","typeMigrationVersion":"10.6.0","updated_at":"2025-09-01T08:40:04.627Z","updated_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","version":"WzI1LDFd"}
{"attributes":{"controlGroupInput":{"chainingSystem":"HIERARCHICAL","controlStyle":"oneLine","ignoreParentSettingsJSON":"{\"ignoreFilters\":false,\"ignoreQuery\":false,\"ignoreTimerange\":false,\"ignoreValidations\":false}","panelsJSON":"{}","showApplySelections":false},"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"}}"},"optionsJSON":"{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}","panelsJSON":"[{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT group.keyword\"},\"attributes\":{\"title\":\"Bar vertical stacked\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"15061731-5d29-4a72-a567-511cacf8f8b0\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT group.keyword\"},\"columns\":[{\"columnId\":\"9c73d0b6-cedd-4b8d-b756-181fa23f831e\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"}},\"label\":\"group.keyword\"},{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"9c73d0b6-cedd-4b8d-b756-181fa23f831e\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"}},\"label\":\"group.keyword\"},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT group.keyword\"},\"visualization\":{\"layerId\":\"15061731-5d29-4a72-a567-511cacf8f8b0\",\"layerType\":\"data\",\"columns\":[{\"isTransposed\":false,\"columnId\":\"MAX(value)\",\"isMetric\":true},{\"columnId\":\"9c73d0b6-cedd-4b8d-b756-181fa23f831e\",\"isTransposed\":false,\"isMetric\":true}],\"density\":\"compact\"},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsDatatable\"}},\"panelIndex\":\"4da9c34b-6afe-4f1f-95cc-6ac55ec3457b\",\"gridData\":{\"i\":\"4da9c34b-6afe-4f1f-95cc-6ac55ec3457b\",\"y\":0,\"x\":9,\"w\":10,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-5ef6dd1b-61a8-4356-bd27-288616fddf2d\"}],\"state\":{\"visualization\":{\"columns\":[{\"columnId\":\"d7092734-a0b9-40ca-b4f7-d4617a53fecc\",\"isTransposed\":false,\"isMetric\":false},{\"columnId\":\"02549d4c-d438-4a0e-ac77-204a946210d4\",\"isTransposed\":false,\"isMetric\":true}],\"layerId\":\"5ef6dd1b-61a8-4356-bd27-288616fddf2d\",\"layerType\":\"data\",\"density\":\"compact\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"5ef6dd1b-61a8-4356-bd27-288616fddf2d\":{\"columns\":{\"d7092734-a0b9-40ca-b4f7-d4617a53fecc\":{\"label\":\"group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":5,\"orderBy\":{\"type\":\"column\",\"columnId\":\"02549d4c-d438-4a0e-ac77-204a946210d4\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false},\"customLabel\":true},\"02549d4c-d438-4a0e-ac77-204a946210d4\":{\"label\":\"MAX(value)\",\"dataType\":\"number\",\"operationType\":\"max\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true},\"customLabel\":true}},\"columnOrder\":[\"d7092734-a0b9-40ca-b4f7-d4617a53fecc\",\"02549d4c-d438-4a0e-ac77-204a946210d4\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"428d7e3b-a36e-42c7-876c-47fd09c83e6d\",\"gridData\":{\"i\":\"428d7e3b-a36e-42c7-876c-47fd09c83e6d\",\"y\":0,\"x\":0,\"w\":9,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-d3098067-39a1-42fa-9073-5d2aaedcb4a5\"}],\"state\":{\"visualization\":{\"columns\":[{\"columnId\":\"5a0fe080-8e6e-4ad3-b06c-b16bf3524883\",\"isTransposed\":false,\"isMetric\":false},{\"columnId\":\"51fdc920-97cb-49b2-99be-140850076d37\",\"isTransposed\":false,\"isMetric\":true}],\"layerId\":\"d3098067-39a1-42fa-9073-5d2aaedcb4a5\",\"layerType\":\"data\",\"density\":\"compact\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"d3098067-39a1-42fa-9073-5d2aaedcb4a5\":{\"columns\":{\"5a0fe080-8e6e-4ad3-b06c-b16bf3524883\":{\"label\":\"Top value\",\"dataType\":\"number\",\"operationType\":\"terms\",\"sourceField\":\"value\",\"isBucketed\":true,\"params\":{\"size\":100,\"orderBy\":{\"type\":\"column\",\"columnId\":\"51fdc920-97cb-49b2-99be-140850076d37\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false},\"customLabel\":true},\"51fdc920-97cb-49b2-99be-140850076d37\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"5a0fe080-8e6e-4ad3-b06c-b16bf3524883\",\"51fdc920-97cb-49b2-99be-140850076d37\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"1cf81889-cda0-423d-bfbd-8eb3e1cac28a\",\"gridData\":{\"i\":\"1cf81889-cda0-423d-bfbd-8eb3e1cac28a\",\"y\":0,\"x\":26,\"w\":10,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value | SORT value ASC NULLS FIRST\"},\"attributes\":{\"title\":\"COUNT(*) & value of (empty)\",\"references\":[],\"state\":{\"visualization\":{\"layerId\":\"c6d47253-d434-4b57-8ac8-7ebfa4f3b144\",\"layerType\":\"data\",\"columns\":[{\"isTransposed\":false,\"columnId\":\"COUNT(*)\",\"isMetric\":true},{\"columnId\":\"value\"}],\"density\":\"compact\"},\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value | SORT value ASC NULLS FIRST\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"c6d47253-d434-4b57-8ac8-7ebfa4f3b144\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value | SORT value ASC NULLS FIRST\"},\"columns\":[{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-c6d47253-d434-4b57-8ac8-7ebfa4f3b144\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\"}},\"panelIndex\":\"e1b5aeb6-bea2-4e18-8fb1-3886f921fdac\",\"gridData\":{\"i\":\"e1b5aeb6-bea2-4e18-8fb1-3886f921fdac\",\"y\":0,\"x\":36,\"w\":12,\"h\":8,\"sectionId\":\"7a585c7e-5210-430f-a021-7e5ef3b212db\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-6d0e701e-2292-4c54-84aa-8f6d95adf7a5\"}],\"state\":{\"visualization\":{\"title\":\"Empty XY chart\",\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"6d0e701e-2292-4c54-84aa-8f6d95adf7a5\",\"accessors\":[\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\"],\"position\":\"top\",\"seriesType\":\"bar_horizontal_stacked\",\"showGridlines\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}},\"xAccessor\":\"e7eba242-7626-425e-82d4-88a8a2634fbc\"}],\"axisTitlesVisibilitySettings\":{\"x\":false,\"yLeft\":true,\"yRight\":true}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"6d0e701e-2292-4c54-84aa-8f6d95adf7a5\":{\"columns\":{\"e7eba242-7626-425e-82d4-88a8a2634fbc\":{\"label\":\"Top 5 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":5,\"orderBy\":{\"type\":\"column\",\"columnId\":\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\":{\"label\":\"Maximum of value\",\"dataType\":\"number\",\"operationType\":\"max\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"e7eba242-7626-425e-82d4-88a8a2634fbc\",\"a9b42e87-6dca-4f43-8721-4a2a9e930cce\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"6d443bc6-8206-4272-b542-c3838c4481e7\",\"gridData\":{\"i\":\"6d443bc6-8206-4272-b542-c3838c4481e7\",\"y\":0,\"x\":0,\"w\":9,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT `MAX(value)` DESC\"},\"attributes\":{\"title\":\"Bar vertical stacked\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"a2ac5814-e6f4-4f5b-95d6-b43bc196ee0e\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT `MAX(value)` DESC\"},\"columns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"customLabel\":false,\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}],\"timeField\":\"@timestamp\"}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS MAX(value) BY group.keyword | SORT `MAX(value)` DESC\"},\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"Linear\",\"axisTitlesVisibilitySettings\":{\"x\":false,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"a2ac5814-e6f4-4f5b-95d6-b43bc196ee0e\",\"seriesType\":\"bar_horizontal_stacked\",\"xAccessor\":\"group.keyword\",\"accessors\":[\"MAX(value)\"],\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsXY\"}},\"panelIndex\":\"5380f21a-7291-4fcc-84df-a836141c4e46\",\"gridData\":{\"i\":\"5380f21a-7291-4fcc-84df-a836141c4e46\",\"y\":0,\"x\":9,\"w\":10,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-cb5bdad9-fe37-4672-9c3c-f73d008e4c3e\"}],\"state\":{\"visualization\":{\"title\":\"Empty XY chart\",\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"cb5bdad9-fe37-4672-9c3c-f73d008e4c3e\",\"accessors\":[\"992e3924-b037-45a1-a77a-e125163adc13\"],\"position\":\"top\",\"seriesType\":\"bar_horizontal_stacked\",\"showGridlines\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}},\"xAccessor\":\"cca85e86-6d79-4a77-80e4-e141686aeb40\"}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"cb5bdad9-fe37-4672-9c3c-f73d008e4c3e\":{\"columns\":{\"cca85e86-6d79-4a77-80e4-e141686aeb40\":{\"label\":\"Top 10 values of value\",\"dataType\":\"number\",\"operationType\":\"terms\",\"sourceField\":\"value\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"992e3924-b037-45a1-a77a-e125163adc13\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"992e3924-b037-45a1-a77a-e125163adc13\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"cca85e86-6d79-4a77-80e4-e141686aeb40\",\"992e3924-b037-45a1-a77a-e125163adc13\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"68520e32-f931-4716-aa20-7a1e27933961\",\"gridData\":{\"i\":\"68520e32-f931-4716-aa20-7a1e27933961\",\"y\":0,\"x\":26,\"w\":10,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"attributes\":{\"title\":\"COUNT(*) & value of (empty)\",\"references\":[],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"Linear\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"92af237a-4539-4054-8e80-3a07e433a0be\",\"seriesType\":\"bar_horizontal_stacked\",\"xAccessor\":\"947d01d9-1f92-480d-81a9-9e79841e71a2\",\"accessors\":[\"COUNT(*)\"],\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"92af237a-4539-4054-8e80-3a07e433a0be\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"columns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"947d01d9-1f92-480d-81a9-9e79841e71a2\",\"fieldName\":\"value\",\"meta\":{\"type\":\"number\",\"esType\":\"long\"}}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-92af237a-4539-4054-8e80-3a07e433a0be\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsXY\",\"type\":\"lens\"}},\"panelIndex\":\"c1bcc9a5-5170-4e66-a1ae-dfe4e7b48151\",\"gridData\":{\"i\":\"c1bcc9a5-5170-4e66-a1ae-dfe4e7b48151\",\"y\":0,\"x\":36,\"w\":12,\"h\":10,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"visualization\",\"embeddableConfig\":{\"title\":\"Visualize\",\"description\":\"\",\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"savedVis\":{\"title\":\"\",\"description\":\"\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":false},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"filter\":true,\"truncate\":100},\"title\":{},\"style\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":true,\"truncate\":100},\"title\":{\"text\":\"\"},\"style\":{}}],\"seriesParams\":[{\"show\":true,\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"Count\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"lineWidth\":2,\"interpolate\":\"linear\",\"showCircles\":true,\"circlesRadius\":1}],\"addTooltip\":true,\"detailedTooltip\":true,\"palette\":{\"type\":\"palette\",\"name\":\"default\"},\"addLegend\":true,\"legendPosition\":\"right\",\"fittingFunction\":\"linear\",\"times\":[],\"addTimeMarker\":false,\"truncateLegend\":true,\"maxLegendLines\":1,\"labels\":{},\"radiusRatio\":9,\"thresholdLine\":{\"show\":false,\"value\":10,\"width\":1,\"style\":\"full\",\"color\":\"#FCD883\"},\"row\":true},\"uiState\":{},\"data\":{\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"params\":{\"emptyAsNull\":false},\"schema\":\"metric\"},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"params\":{\"field\":\"group.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":5,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":true,\"missingBucketLabel\":\"\",\"includeIsRegex\":true,\"excludeIsRegex\":true},\"schema\":\"split\"},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"params\":{\"field\":\"group.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":5,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":true,\"missingBucketLabel\":\"\",\"includeIsRegex\":true,\"excludeIsRegex\":true},\"schema\":\"group\"}],\"searchSource\":{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[],\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\"}}}},\"panelIndex\":\"39cdb9f2-575f-40b5-8d12-7734c495d040\",\"gridData\":{\"i\":\"39cdb9f2-575f-40b5-8d12-7734c495d040\",\"y\":0,\"x\":19,\"w\":7,\"h\":15,\"sectionId\":\"d38da6ec-ef17-4259-bc91-d4d33ef6270d\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsHeatmap\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-db3105f8-023d-4109-af6b-bee449289a70\"}],\"state\":{\"visualization\":{\"layerId\":\"db3105f8-023d-4109-af6b-bee449289a70\",\"layerType\":\"data\",\"title\":\"Empty Heatmap chart\",\"shape\":\"heatmap\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"maxLines\":1,\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":true,\"isXAxisTitleVisible\":true},\"xAccessor\":\"6ba133ff-2e44-4081-ac51-5e9403f89612\",\"yAccessor\":\"cfcbc481-46f8-41f5-b8d4-9f87e328b0f2\",\"valueAccessor\":\"67727602-1b86-4d2f-902e-2928b553f1ac\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"db3105f8-023d-4109-af6b-bee449289a70\":{\"columns\":{\"6ba133ff-2e44-4081-ac51-5e9403f89612\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"params\":{\"interval\":\"d\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"cfcbc481-46f8-41f5-b8d4-9f87e328b0f2\":{\"label\":\"Top 4 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":4,\"orderBy\":{\"type\":\"column\",\"columnId\":\"67727602-1b86-4d2f-902e-2928b553f1ac\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"67727602-1b86-4d2f-902e-2928b553f1ac\":{\"label\":\"Median of value\",\"dataType\":\"number\",\"operationType\":\"median\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"6ba133ff-2e44-4081-ac51-5e9403f89612\",\"cfcbc481-46f8-41f5-b8d4-9f87e328b0f2\",\"67727602-1b86-4d2f-902e-2928b553f1ac\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"d3695c1f-bc44-4dd0-b2d7-b92dc0fd2725\",\"gridData\":{\"i\":\"d3695c1f-bc44-4dd0-b2d7-b92dc0fd2725\",\"y\":8,\"x\":0,\"w\":19,\"h\":7,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"attributes\":{\"title\":\"MAX(value) over BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"114dfce6-87f3-43f2-8a05-016023a26743\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"columns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"fieldName\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"label\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"customLabel\":false,\"meta\":{\"type\":\"date\",\"esType\":\"date\"}},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"customLabel\":false,\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}],\"timeField\":\"@timestamp\"}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"visualization\":{\"shape\":\"heatmap\",\"layerId\":\"114dfce6-87f3-43f2-8a05-016023a26743\",\"layerType\":\"data\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":false,\"isXAxisTitleVisible\":false},\"valueAccessor\":\"MAX(value)\",\"xAccessor\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"yAccessor\":\"group.keyword\"},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsHeatmap\"}},\"panelIndex\":\"d8e5ccaa-05ab-4170-a978-26bf18a92d84\",\"gridData\":{\"i\":\"d8e5ccaa-05ab-4170-a978-26bf18a92d84\",\"y\":8,\"x\":19,\"w\":22,\"h\":7,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"attributes\":{\"title\":\"MAX(value) over BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"references\":[],\"state\":{\"visualization\":{\"shape\":\"heatmap\",\"layerId\":\"1744c50e-d135-4cdd-9423-fbb867d62b84\",\"layerType\":\"data\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":false,\"isXAxisTitleVisible\":false},\"valueAccessor\":\"MAX(value)\",\"xAccessor\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"yAccessor\":\"873d200b-9829-47ea-a73a-1ad2ecf3f94b\"},\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"1744c50e-d135-4cdd-9423-fbb867d62b84\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM  my_new_index | STATS MAX(value) BY BUCKET(@timestamp, 50, ?_tstart, ?_tend), group.keyword\"},\"columns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"},\"params\":{\"id\":\"string\"}}},{\"columnId\":\"873d200b-9829-47ea-a73a-1ad2ecf3f94b\",\"fieldName\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"meta\":{\"type\":\"date\",\"esType\":\"date\"}}],\"timeField\":\"@timestamp\",\"allColumns\":[{\"columnId\":\"MAX(value)\",\"fieldName\":\"MAX(value)\",\"label\":\"MAX(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"fieldName\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"label\":\"BUCKET(@timestamp, 50, ?_tstart, ?_tend)\",\"customLabel\":false,\"meta\":{\"type\":\"date\",\"esType\":\"date\"}},{\"columnId\":\"873d200b-9829-47ea-a73a-1ad2ecf3f94b\",\"fieldName\":\"group.keyword\",\"meta\":{\"type\":\"string\",\"esType\":\"keyword\",\"sourceParams\":{\"indexPattern\":\"my_new_index\",\"sourceField\":\"group.keyword\"},\"params\":{\"id\":\"string\"}},\"label\":\"group.keyword\"}]}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-1744c50e-d135-4cdd-9423-fbb867d62b84\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsHeatmap\",\"type\":\"lens\"}},\"panelIndex\":\"9c478c0b-0ed4-45e6-ae88-76148bfb5ca8\",\"gridData\":{\"i\":\"9c478c0b-0ed4-45e6-ae88-76148bfb5ca8\",\"y\":0,\"x\":19,\"w\":22,\"h\":8,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsHeatmap\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-5fd27b0d-5aa8-4188-abba-4aa6fdbf6556\"}],\"state\":{\"visualization\":{\"layerId\":\"5fd27b0d-5aa8-4188-abba-4aa6fdbf6556\",\"layerType\":\"data\",\"title\":\"Empty Heatmap chart\",\"shape\":\"heatmap\",\"legend\":{\"isVisible\":true,\"position\":\"right\",\"maxLines\":1,\"type\":\"heatmap_legend\"},\"gridConfig\":{\"type\":\"heatmap_grid\",\"isCellLabelVisible\":false,\"isYAxisLabelVisible\":true,\"isXAxisLabelVisible\":true,\"isYAxisTitleVisible\":true,\"isXAxisTitleVisible\":true},\"xAccessor\":\"52ed992c-75b0-4f3d-9d8d-6368a66a0095\",\"yAccessor\":\"37213e11-3db7-416f-81b8-d78e361a74ee\",\"valueAccessor\":\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"5fd27b0d-5aa8-4188-abba-4aa6fdbf6556\":{\"columns\":{\"52ed992c-75b0-4f3d-9d8d-6368a66a0095\":{\"label\":\"Top 4 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":4,\"orderBy\":{\"type\":\"column\",\"columnId\":\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"37213e11-3db7-416f-81b8-d78e361a74ee\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"params\":{\"interval\":\"d\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\":{\"label\":\"Median of value\",\"dataType\":\"number\",\"operationType\":\"median\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"52ed992c-75b0-4f3d-9d8d-6368a66a0095\",\"37213e11-3db7-416f-81b8-d78e361a74ee\",\"a2b777e9-47e3-4676-a136-8c7ec49f9a18\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"d0a23fd1-3116-4e71-85f0-0dbc87ab145a\",\"gridData\":{\"i\":\"d0a23fd1-3116-4e71-85f0-0dbc87ab145a\",\"y\":0,\"x\":0,\"w\":19,\"h\":8,\"sectionId\":\"ea6bfddc-8052-48e6-9f8d-55458bfa88dd\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS AVG(value) BY group.keyword | SORT `AVG(value)`\"},\"attributes\":{\"title\":\"Bar vertical stacked\",\"references\":[],\"state\":{\"datasourceStates\":{\"textBased\":{\"layers\":{\"42f6729c-512f-4e83-bf12-984b58b2d7d6\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS AVG(value) BY group.keyword | SORT `AVG(value)`\"},\"columns\":[{\"columnId\":\"AVG(value)\",\"fieldName\":\"AVG(value)\",\"label\":\"AVG(value)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"double\"},\"inMetricDimension\":true},{\"columnId\":\"group.keyword\",\"fieldName\":\"group.keyword\",\"label\":\"group.keyword\",\"customLabel\":false,\"meta\":{\"type\":\"string\",\"esType\":\"keyword\"}}],\"timeField\":\"@timestamp\"}},\"indexPatternRefs\":[{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS AVG(value) BY group.keyword | SORT `AVG(value)`\"},\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"42f6729c-512f-4e83-bf12-984b58b2d7d6\",\"primaryGroups\":[\"group.keyword\"],\"metrics\":[\"AVG(value)\"],\"numberDisplay\":\"percent\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}},\"needsRefresh\":false},\"visualizationType\":\"lnsPie\"}},\"panelIndex\":\"02302c92-e7ac-47bc-8e40-7e66d0dd2448\",\"gridData\":{\"i\":\"02302c92-e7ac-47bc-8e40-7e66d0dd2448\",\"y\":0,\"x\":11,\"w\":12,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsPie\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-44cc4e6d-fffc-49be-89f9-9c936e08eedb\"}],\"state\":{\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"44cc4e6d-fffc-49be-89f9-9c936e08eedb\",\"primaryGroups\":[\"a5cfe5c3-a9a8-4cd5-af4f-150aff3fa194\"],\"metrics\":[\"508d19ad-ed93-4dc9-b86b-1b03fced79da\"],\"numberDisplay\":\"percent\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"44cc4e6d-fffc-49be-89f9-9c936e08eedb\":{\"columns\":{\"a5cfe5c3-a9a8-4cd5-af4f-150aff3fa194\":{\"label\":\"Top 5 values of group.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"sourceField\":\"group.keyword\",\"isBucketed\":true,\"params\":{\"size\":5,\"orderBy\":{\"type\":\"column\",\"columnId\":\"508d19ad-ed93-4dc9-b86b-1b03fced79da\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":true,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"508d19ad-ed93-4dc9-b86b-1b03fced79da\":{\"label\":\"Average of value\",\"dataType\":\"number\",\"operationType\":\"average\",\"sourceField\":\"value\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"a5cfe5c3-a9a8-4cd5-af4f-150aff3fa194\",\"508d19ad-ed93-4dc9-b86b-1b03fced79da\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"02fc3314-c476-4c19-b1fd-c105b5f21693\",\"gridData\":{\"i\":\"02fc3314-c476-4c19-b1fd-c105b5f21693\",\"y\":0,\"x\":0,\"w\":11,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"ES|QL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"attributes\":{\"title\":\"COUNT(*) & value of (empty)\",\"references\":[],\"state\":{\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"8f3c1d7f-1205-4fef-ad96-25a0e27adb50\",\"primaryGroups\":[\"value\"],\"metrics\":[\"COUNT(*)\"],\"numberDisplay\":\"percent\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"filters\":[],\"datasourceStates\":{\"textBased\":{\"layers\":{\"8f3c1d7f-1205-4fef-ad96-25a0e27adb50\":{\"index\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"query\":{\"esql\":\"FROM my_new_index | STATS COUNT(*) BY value\"},\"columns\":[{\"columnId\":\"COUNT(*)\",\"fieldName\":\"COUNT(*)\",\"label\":\"COUNT(*)\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true},{\"columnId\":\"value\",\"fieldName\":\"value\",\"label\":\"value\",\"customLabel\":false,\"meta\":{\"type\":\"number\",\"esType\":\"long\"},\"inMetricDimension\":true}],\"timeField\":\"@timestamp\"}}}},\"internalReferences\":[{\"type\":\"index-pattern\",\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"name\":\"textBasedLanguages-datasource-layer-8f3c1d7f-1205-4fef-ad96-25a0e27adb50\"}],\"adHocDataViews\":{\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\":{\"id\":\"26fe469415a27271c042e99de033f116833127630c56b849a49b51d3a7728306\",\"title\":\"my_new_index\",\"timeFieldName\":\"@timestamp\",\"sourceFilters\":[],\"type\":\"esql\",\"fieldFormats\":{},\"runtimeFieldMap\":{},\"allowNoIndex\":false,\"name\":\"my_new_index\",\"allowHidden\":false}}},\"visualizationType\":\"lnsPie\",\"type\":\"lens\"}},\"panelIndex\":\"04ab9724-68aa-4a12-bd46-a16ad8fa973c\",\"gridData\":{\"i\":\"04ab9724-68aa-4a12-bd46-a16ad8fa973c\",\"y\":0,\"x\":36,\"w\":11,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"lens\",\"embeddableConfig\":{\"enhancements\":{\"dynamicActions\":{\"events\":[]}},\"title\":\"DSL\",\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"filters\":[],\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsPie\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"name\":\"indexpattern-datasource-layer-b2d3cea3-4d18-47e1-a8f2-4c407c21b69c\"}],\"state\":{\"visualization\":{\"shape\":\"pie\",\"layers\":[{\"layerId\":\"b2d3cea3-4d18-47e1-a8f2-4c407c21b69c\",\"primaryGroups\":[\"31e3cfac-ab61-473b-bcb9-1f3dacfc0e44\"],\"metrics\":[\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\"],\"numberDisplay\":\"value\",\"categoryDisplay\":\"default\",\"legendDisplay\":\"default\",\"nestedLegend\":false,\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rules\":[{\"type\":\"other\"}],\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"default\",\"colorMode\":{\"type\":\"categorical\"}}}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"b2d3cea3-4d18-47e1-a8f2-4c407c21b69c\":{\"columns\":{\"31e3cfac-ab61-473b-bcb9-1f3dacfc0e44\":{\"label\":\"Top 10 values of value\",\"dataType\":\"number\",\"operationType\":\"terms\",\"sourceField\":\"value\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"31e3cfac-ab61-473b-bcb9-1f3dacfc0e44\",\"0456aae2-fb5b-417d-9e2e-4d9cf936f4cb\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{},\"indexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"}},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"indexpattern\":{\"layers\":{},\"currentIndexPatternId\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\"},\"textBased\":{\"layers\":{},\"indexPatternRefs\":[{\"id\":\"d1ed34be-3144-4f79-a436-a5ade93ae0b5\",\"title\":\"my_new_index\",\"timeField\":\"@timestamp\"}]}},\"internalReferences\":[],\"adHocDataViews\":{}}}},\"panelIndex\":\"445e0655-89a9-4c58-809f-f3054d1475b7\",\"gridData\":{\"i\":\"445e0655-89a9-4c58-809f-f3054d1475b7\",\"y\":0,\"x\":26,\"w\":10,\"h\":11,\"sectionId\":\"4ca44f9b-1232-42ee-80cf-7f162e47de19\"}},{\"type\":\"search\",\"embeddableConfig\":{},\"panelIndex\":\"cc6b459e-7304-4ae8-96ac-a284003e6fde\",\"gridData\":{\"i\":\"cc6b459e-7304-4ae8-96ac-a284003e6fde\",\"y\":0,\"x\":1,\"w\":23,\"h\":12,\"sectionId\":\"1b0e444b-f9a6-4d47-9cb5-013ca5b32f78\"}}]","sections":[{"collapsed":false,"gridData":{"i":"7a585c7e-5210-430f-a021-7e5ef3b212db","y":0},"title":"Table"},{"collapsed":false,"gridData":{"i":"d38da6ec-ef17-4259-bc91-d4d33ef6270d","y":1},"title":"XY"},{"collapsed":false,"gridData":{"i":"ea6bfddc-8052-48e6-9f8d-55458bfa88dd","y":2},"title":"Heatmap"},{"collapsed":false,"gridData":{"i":"4ca44f9b-1232-42ee-80cf-7f162e47de19","y":3},"title":"Pie"},{"collapsed":false,"gridData":{"i":"1b0e444b-f9a6-4d47-9cb5-013ca5b32f78","y":4},"title":"Discover"},{"collapsed":true,"gridData":{"i":"915f9e01-18be-4b15-ac71-da7e3fb95c10","y":5},"title":"testing"}],"timeRestore":false,"title":"Null Values","version":1},"coreMigrationVersion":"8.8.0","created_at":"2025-09-01T09:42:11.867Z","created_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","id":"3c9d0c5c-48ca-402d-b8ca-7542572bbb0a","managed":false,"references":[{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"428d7e3b-a36e-42c7-876c-47fd09c83e6d:indexpattern-datasource-layer-5ef6dd1b-61a8-4356-bd27-288616fddf2d","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"1cf81889-cda0-423d-bfbd-8eb3e1cac28a:indexpattern-datasource-layer-d3098067-39a1-42fa-9073-5d2aaedcb4a5","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"6d443bc6-8206-4272-b542-c3838c4481e7:indexpattern-datasource-layer-6d0e701e-2292-4c54-84aa-8f6d95adf7a5","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"68520e32-f931-4716-aa20-7a1e27933961:indexpattern-datasource-layer-cb5bdad9-fe37-4672-9c3c-f73d008e4c3e","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"39cdb9f2-575f-40b5-8d12-7734c495d040:kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"d3695c1f-bc44-4dd0-b2d7-b92dc0fd2725:indexpattern-datasource-layer-db3105f8-023d-4109-af6b-bee449289a70","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"d0a23fd1-3116-4e71-85f0-0dbc87ab145a:indexpattern-datasource-layer-5fd27b0d-5aa8-4188-abba-4aa6fdbf6556","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"02fc3314-c476-4c19-b1fd-c105b5f21693:indexpattern-datasource-layer-44cc4e6d-fffc-49be-89f9-9c936e08eedb","type":"index-pattern"},{"id":"d1ed34be-3144-4f79-a436-a5ade93ae0b5","name":"445e0655-89a9-4c58-809f-f3054d1475b7:indexpattern-datasource-layer-b2d3cea3-4d18-47e1-a8f2-4c407c21b69c","type":"index-pattern"},{"id":"a2574325-91ef-4b43-93dc-333d8e8acd35","name":"cc6b459e-7304-4ae8-96ac-a284003e6fde:savedObjectRef","type":"search"}],"type":"dashboard","typeMigrationVersion":"10.3.0","updated_at":"2025-09-01T09:42:11.867Z","updated_by":"u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0","version":"WzMzLDFd"}
{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":3,"missingRefCount":0,"missingReferences":[]}


```
</details>



## Release note

Null buckets and empty string values are now rendered in the UI as
`(missing value)` and `(empty)` respectively. This is now aligned across
charts and tables, including Discover and Lens charts.

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
jughosta added a commit that referenced this pull request Feb 9, 2026
- Resolves #251846

## Summary

URL and Badge (for boolean type) field formatters had noticeable issues
when field had no data. Some of the other formatters did not use the
same style, so I updated it too.

Also extended the tests.

A regression after #233369

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 9, 2026
…51892)

- Resolves elastic#251846

## Summary

URL and Badge (for boolean type) field formatters had noticeable issues
when field had no data. Some of the other formatters did not use the
same style, so I updated it too.

Also extended the tests.

A regression after elastic#233369

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit deec23d)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 9, 2026
…51892)

- Resolves elastic#251846

## Summary

URL and Badge (for boolean type) field formatters had noticeable issues
when field had no data. Some of the other formatters did not use the
same style, so I updated it too.

Also extended the tests.

A regression after elastic#233369

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit deec23d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana Feature:FieldFormatters Feature:Lens release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v9.2.0