-
Notifications
You must be signed in to change notification settings - Fork 121
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
Visual overlapping of annotation icon and vertical axis tick/label #1400
Comments
As of right now I believe we leave it to the user to set the value of the annotation gutter, if you will, such that it has the width or height it needs. This would be through In you case you are using the eui theme which removes the axes ticks making this collision more apparent. I think we could improve this to be automatic in the future but there are cases like annotations outside and adaptive |
I made some experiments with annotation on the Initial state with overlap: Here's using the Here's using the |
Yes @nickofthyme, at the moment this is true, we don't automatically allocate space for the icon on the axis. If you are in the bad situation of having a dual-axis chart (highly discouraged) is advised to keep the icon near the relative axis draw it inside the chart (better if placed on the top/bottom of the line annotation. Remember that you can also use directly the value instead if just an icon as in the below example. Finally you can also have the icon externally placed without adding the Also another possibility, that doesn't fully resolve but can help reading the chart is to color the axis with the same color of the annotation line to improve, for non-color blinded person, the link between the axis and the annotation in a dual axis situation https://codesandbox.io/s/summer-browser-q4upn?file=/src/App.tsx |
you can also use |
I think this one is the best tradeoff at the moment.
This is definitely an interesting idea and something we might consider given elastic/kibana#112921
This makes sense, but I doubt is compatible with a generic case where the user can have multiple annotations on the same axis with distinct colors as in our use case. |
Managed to find a solution for all the various combinations (title + tick labels, title only, etc...) in this PR combining all the padding/margin parameters in the Axis component: elastic/kibana#112952 |
Describe the bug
We use the annotation system to draw thresholds in Lens, and upon adding the Icon marker associated with the annotation, it was noticed that it is possible a collision of the marker with the vertical axis.
Kibana Cross Issues
elastic/kibana#112793
The text was updated successfully, but these errors were encountered: