[Lens] Treemap shows excessive padding if its height is greater then 1000px #159942
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Lens
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version:
since 8.2
Describe the bug:
If the height of a treemap exceeds 1000px paddings are added, reducing the chart size.
This behavior is an unwanted one and probably a missing handled case when unifying the partition chart expression.
This behavior was probably introduced to handle a max size of 1000 px for pie charts, that they looks exceccively big if larger than that size.
Steps to reproduce:
Expected behavior:
A treemap can be stretched as much as the user wants without adding paddings.
Screenshots (if relevant):
Errors in browser console (if relevant):
N/A
Any additional context:
The bug was introduced in #122420 and the code that introduce that padding is here:
kibana/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.ts
Lines 128 to 133 in 9e74fcf
The text was updated successfully, but these errors were encountered: