[Lens] Horizontal bar visualizations sharing vertical axis are slightly offset on dashboard #118951
Labels
blocked
bug
Fixes for quality problems that affect the customer experience
Feature:ElasticCharts
Issues related to the elastic-charts library
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:
7.14.2
Elasticsearch version:
7.14.2
Server OS version:
Browser version:
Version 15.1 (16612.2.9.1.30, 16612)
Browser OS version:
macOS Big Sur (11.6)
Original install method (e.g. download page, yum, from source, etc.):
Elastic Cloud
Describe the bug:
If you have multiple Lens horizontal bar visualizations that would share a vertical axis positioned horizontally on a dashboard, the horizontal bars don’t line up exactly. Oddly, the offset seems change between the bars near the top and those near the bottom. It's only a few pixels, but it could be perfect :D
Not sure if this is due to show/hiding the legend or show/hiding the axis (or something else).
Steps to reproduce:
Expected behavior:
I'd expect the alignment of bars to be the same across all visualizations to help cement they share the same axis.
Screenshots (if relevant):
Actual dashboard with redacted information:
Synthetic example showing same behavior:
See above example here https://codesandbox.io/s/trusting-wood-xd4hs
Errors in browser console (if relevant):
No errors
Provide logs and/or server output (if relevant):
No logs
Any additional context:
Removal of the axis labels causes the slight misalignment. A temporary fix could be hide title and use
tickFormat = () => ''
.The text was updated successfully, but these errors were encountered: