elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.17k forks source link

[Lens] make metric grid responsive #174481

Open drewdaemon opened 8 months ago

drewdaemon commented 8 months ago

Describe the feature: Right now the metric visualization has a fixed set of columns and rows no matter how much space is available in either width or height.

Instead, we could better preserve the intended aspect ratios in each tile by responsively adjusting the number displayed on each column and row. This could be done in both the editor and on dashboards.

https://github.com/elastic/kibana/assets/315764/8c5ee704-9394-44f8-842e-5cadd4148c63

Notes This would maybe be best done in Elastic charts

Would have to figure out what to do with the current setting (perhaps a manual/auto mode switch? if so, what should be the default?)

Screenshot 2024-01-08 at 11 02 43 AM
elasticmachine commented 8 months ago

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

stratoula commented 8 months ago

Not blocking GA, if we do it it should not be the default (needs discussion with the design team before starting working on it and a PoC

nickofthyme commented 8 months ago

Two things to consider implementing this feature on dashboard.