-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bars overlap each other when stackAccessors and minBarHeight used together #2120
Comments
Thank you @maxcold for the two issues identified here.
All these are valid bugs, but I kindly suggest to not use a Update: Question for you: what is your use case for this |
Hi @markov00, thanks for looking into the issue and providing more context! |
Since In this way you always have all your data shown clearly, you can quickly compare each section, and also show the numbers directly, and critical will be always clearly visible. I know, this is a workaround and you have also to deal with another configuration for the tooltip (see https://codesandbox.io/s/awesome-zhukovsky-rmgsxq?file=/src/App.tsx) but could be a viable option in the meantime. |
@markov00 Thanks for the suggestion, but it won't work for us as we have trend charts where we use this bar representation. I should have shared the full example |
What we did recently - we reverted the order of the bars, to have critical ones on top, this way there is a higher chance that they will be visible, but still due to the bag it's not very reliable |
Hi @maxcold I will start working on this bug, can you please assign this to me ? |
Describe the issue
When
minBarHeight
is used together withstackAccessors
to have bars stacked on each other inBarSeries
component, bars which are subjects ofminBarHeight
overlap other bars. This leads to these bars not being visible on the chartTo Reproduce
codesandbox example
Expected behaviour
Bars with min-height are stacked correctly and visible on the chart
Screenshots
Min height is 10px. In the first stack, the second bar goes outside of the visible area. In the third stack, one bar is not visible at all.
CRITICAL
bar is almost not visible even though the min-height is set to 5Version (please complete the following information):
Additional context
it looks like the Y coordinate is being calculated incorrectly, which leads to bars overlapping each other
Errors in browser console
n/a
Kibana Cross Issues
Checklist
:xy
,:partition
):interactions
,:axis
)Kibana Cross Issues
list and thekibana cross issue
tag is appliedThe text was updated successfully, but these errors were encountered: