-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] add option hide/show/auto
legend to XY Chart
#67310
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Could you elaborate on that please. What is the limitation? Is the only limitation we don't have a place to put "overall chart settings" somewhere? Because I think we discussed that a couple of times, that we def need that place, and just need designs on where overall chart settings are going.
Small correction: this is not dashboard related. That icon is the implementation in vislib charts (no matter where) to toggle the legend. I am neither really concerned it's that well detectable and not sure if we should use the same pattern to toggle chart legends temporarily with the new charts. Maybe @markov00 has some ideas how we want to make legends toggable in charts? |
exactly. |
I think we should provide the same pattern for every chart as we are already doing in vislib/tsvb etc: show the overlay button to toggle on/off the chart if the legend setting is turned on or in auto mode. |
|
To put it less technically 😉 , if there's more than a single series and colors are used to distinguish categories, the The old legend toggle that exists in TSVB and Visualize should not be applied to Lens. This was a hotfix for supporting how those two applications handled the visibility of the legend. Hiding legends from charts that have more than a single series makes the charts unreadable. It doesn't really make sense to make this a non-saved visual option (the way it's handled in Dashboards). It should continue (in Lens) to be part of the saved options of the chart. We will get to a point where Dashboard to Lens is a much smoother process and where the owner can then decide if the legend provides value to the chart or not and easily edit the Lens to change this saved option. |
Depends on #67384 |
I agree with @cchaos that hiding the legend would cause a subset of charts to be less readable in a dashboard, but that doesn't necessarily mean we should skip this feature. The users who are asking for this want it because it's a denser display, and because they primarily use the tooltips to investigate the data, so we should enable that use case. I'm not sure we should support a "show legend" option though. We hide the legend when there is a single Y axis, because it duplicates the name of the function with the Y axis label. The duplicate information suggests that this option is not required. Because of these reasons, I don't think this is actually a "basic expectation" for Lens. |
As a user, I want to be able to set legend display option. The design should be probably aligned with pie (cc @cchaos, can you verify?)
Assumptions:
Doubts:
On dashboards, there's an icon:
That toggles the legend. I am not sure how discoverable it is and it might be difficult to implement. Do we want it in lens?
Related: #34102
The text was updated successfully, but these errors were encountered: