Skip to content

[9.2] [Lens] Fix metric color assignment when breakdown and a max dimension are defined (#238901)#239296

Merged
kibanamachine merged 1 commit intoelastic:9.2from
kibanamachine:backport/9.2/pr-238901
Oct 16, 2025
Merged

[9.2] [Lens] Fix metric color assignment when breakdown and a max dimension are defined (#238901)#239296
kibanamachine merged 1 commit intoelastic:9.2from
kibanamachine:backport/9.2/pr-238901

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

… are defined (elastic#238901)

## Summary

Fixes elastic#238885

This PR revisits the `getDataBoundsForPalette` function implementation
to boost its performance and fix a falsy check based on `rowNumber`.

- [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

(cherry picked from commit b05f445)
@kibanamachine kibanamachine merged commit c99b858 into elastic:9.2 Oct 16, 2025
16 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

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

id before after diff
expressionMetricVis 16.5KB 16.5KB -21.0B

cc @dej611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants