[xy] Nicely compute the axis label overflow #1490
Labels
:axis
Axis related issue
bug
Something isn't working
Impact:High
:Lens
Kibana Lens related issue
:xy
Bar/Line/Area chart related
Describe the bug
When showing a categorical vertical bar chart and one label is way longer then all the others the following happen:
To Reproduce
Steps to reproduce the behavior:
Expected behaviour
We should limit the size of the tick labels, trim or put the text into multiple lines.
The overflow should be always justified: if we are showing a label that overflows one edge of the axis lets apply the overflow and reduce the chart size. Adjust the overflow depending on the actual overflow of the chart. Use the monotonic hill clumber method to compute the exact overflow
Screenshots
Additional context
Previously described in #758
The text was updated successfully, but these errors were encountered: