Skip to content
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

[legend] remove legend current values for categorical chart #2050

Closed
markov00 opened this issue May 24, 2023 · 0 comments · Fixed by #2114
Closed

[legend] remove legend current values for categorical chart #2050

markov00 opened this issue May 24, 2023 · 0 comments · Fixed by #2114
Labels
enhancement New feature or request :legend Legend related issue

Comments

@markov00
Copy link
Member

markov00 commented May 24, 2023

Legend in cartesian charts can show the last value and the current hovered value at the right of the series name.
The concept of the last value is a bit blurry and needs to be fixed by #2044.
The concept of current is also good but needs to be explicitly configured in the chart and not mixed with the last one.

Both concepts can coexist but the legend clearly needs a title that specifies what value is currently shown there as specified here #2049.

In the meantime, after an investigation in Kibana, we come to the conclusion that we can safely remove the visibility of the current hovered value for categorical charts: all the usage of the extra value is correlated to the use of linear or time chart, and we are going to keep it even without the title label and is now an existing feature (will be improved with the title).
For categorical charts is not clear why there is no value by default (the "last" value doesn't actually exists, there can be an order, but is not explicit) but it is only shown when hovering over the chart.
This also create an empty white space in the legend to keep the space for the hovered chart, that in some case is not ideal.

We can reenable the current value in the legend for the categorical chart when both a title and the relative configuration are available and when can clearly describe an alternative "default" value when not hovering.

Notes:
The 24/05/2023 a decision was made by the Kibana Visualization Team (@markov00 , @stratoula) to disable representing current hovered values if the X scale is Ordinal. at Elastic this feature wasn't used and the the information was redundant because it was alredy available in the tooltip. A possible enhancement will probably update this configuration to allow current values if explicitly configured.

@markov00 markov00 added enhancement New feature or request :legend Legend related issue labels May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request :legend Legend related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant