Skip to content

[Lens] Metric Chart logic for vertical responsiveness does not work when secondary value is longer than one line #226208

@gvnmagni

Description

@gvnmagni

Kibana version: noticed in 8.18.1, potentially present in previous releases but still needs to be verified

Describe the bug: Information included into Metric Chart behave according to the available amount of space with chart panel. When the amount of space is not enough to display all elements in a readable size, we progressively hide part of these elements or all of them.

The whole vertical calculation seems to be bugged when Secondary Value is longer than a single line of text. The following gif show this behavior, whenever the value is on a single line everything works perfectly. Instead, if the description goes on multiple lines, its vertical height gets miscalculated and the font breakpoints snap at the wrong moment.

Correct behavior, single line
Image

Bugged behavior, multiple lines
Image

I am tagging @dej611 for visibility and @markov00 to help elaborating how we can proceed to solve the bug

Metadata

Metadata

Assignees

Labels

Feature:LensTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experienceimpact:highAddressing this issue will have a high level of impact on the quality/strength of our product.loe:smallSmall Level of Effort

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions