-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Lens] Thresholds: ability to specify text as alternative to icons #112921
Comments
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
the icon / text "placement" might be better as a setting (above / below or right / left). I think the user might want to choose where the notation is as the icon on the axis helps in multiple axis cases (although still wondering if anyone will actually want to do that...) |
@MichaelMarcialis would you propose a specific design to fit the text marker?
|
As long as Elastic Charts supports both simultaneously (which I believe it does), I don't see any reason not to allow both. Thoughts, @ghudgins?
I think this depends on what sort of truncation we intend to implement. If it will be some form of dynamic truncation (ex. one that takes into account the visualization canvas size and proximity to other thresholds), I imagine we could only apply that on the visualization side. If instead it will be something simple (ex. a character limit), I think we should convey that in the configuration input. Additionally, is the assumption for this feature that we will only be allowing entry of a static text string? Or is there a desire to allow users to add variables in the string (such as the value, etc.)? And in either case, should this text input be separate from the "Display name" input? Or should we have the "Display name" input perform double duty as the text for both the visualization's threshold and in the dimension item in the layers panel? |
++ as long as there's room this makes sense.
In weekly last week I believe we had envisioned this as a re-use of the display name for the threshold. Value might be cool too for dynamic thresholds but I don't think it needs to be in this iteration if that helps you make a call. |
@ghudgins: Sounds good. So in summary:
Does that sound good to everyone? If so, let me know if you'd like a formal design for these changes, or if the items described above are enough to go on for development, @dej611. |
Ok, so I think I have almost everything I need to complete this task. The last question I have is about label positioning: should the label positioning change with the presence/absence of the icon, or not? |
I think fixed covers the mixed icon / no icon case better. but i'd like if there are no icons at all to not have the wasted space in the "fixed" scenario (if that makes sense) |
Makes sense. |
+1 to what @ghudgins said. |
What about moving the text inside the chart, above/below the line? For horizontal line it definitely improves the readability of the text Also centering the text is not always the perfect choice: if you are defining a vertical threshold, the text could be left-aligned to the line to specify that "everything gt this line has is above the threshold" |
While I like the mockup with the text marker above/below the line, I have few questions around the following topics:
|
offer the ability to move the text outside the chart?
Probably by default render text above(top) for horizontal lines, and on the right for the vertical ones. With the standard axis position this should not interfere much with the chart and also is in line with the current domain's directions. I will anyway let the user change a particular position if it looks better for them in a different position
For rect annotation, probably always align internally top/right? I'm not sure we have the ability to add text/markers for rect annotation right now |
@markov00 I like the suggestion. If we foresee we'll need to have an option where the reference line label is outside of the visualization could we keep the implementation we have now and make an issue for rect reference line annotations? Is that the right way forward on this?
Looks like it. If you have one, it shows on the "other" side. If you have both, it shows on the same side. Same logic we did for the icons / text today....use the space if you have it. As an aside, one detail that I quite like from @markov00's screenshot is the matching of the reference line color to the axis color. It's the first example I've seen that actually is easy to parse even though there's a lot happening. We should check to see if we can specify axis color at some point (not sure we have an issue for this...will look). |
Yes, it is possible to have it. Or at least it works already with the Lens implementation 😅 |
Describe the feature:
From the uptime use case they want to recreate something like the following with Lens:
Note that it requires to annotate text instead of the icon marker on the axis && change the default placing of the marker (which ought to be on the bottom here).
cc @shahzad31
The text was updated successfully, but these errors were encountered: