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

An option to always display the value on each legend item #149676

Closed
angorayc opened this issue Jan 27, 2023 · 4 comments
Closed

An option to always display the value on each legend item #149676

angorayc opened this issue Jan 27, 2023 · 4 comments
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:x-large Extra Large Level of Effort Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@angorayc
Copy link
Contributor

angorayc commented Jan 27, 2023

There is no value for each legend item unless hovering on the chart - Could we have the option to display the value on each legend item

Example
At the moment, no value show on legend item by default
Screenshot 2023-01-10 at 17 37 25

Value of each legend item only show on hovering the chart:
Screenshot 2023-01-10 at 17 37 38

Expected
Could we show the sum of the bucket by default, and it display the value of the selected bucket while users hovering on the chart.

@botelastic botelastic bot added the needs-team Issues missing a team label label Jan 27, 2023
@angorayc angorayc added Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens and removed needs-team Issues missing a team label labels Jan 27, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

@angorayc angorayc changed the title There is no value for each legend item unless hovering on the chart - Could we have the option to display the value on each legend item? An option to always display the value on each legend item Jan 27, 2023
@stratoula stratoula added enhancement New value added to drive a business result impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Jan 27, 2023
@markov00
Copy link
Member

A bit more context: the value rendered in the legend represent the following:

  • when your mouse is over the chart, it shows the values that are projected on the X axis
  • if the current cursor position doesn't have data, the legend doesn't show data
  • if the cursor is outside the chart then the legend will show the last bucket of data, only if there is data

The way to fix this should include:

  • add the ability to specify a legend title to describe what the number means on every state
  • define a way to specify the value to show, that can be (a data point value, an aggregation, etc)

@timductive timductive added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:weeks and removed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Feb 8, 2023
@ninoslavmiskovic
Copy link
Contributor

This is also related to the "The metric in the tooltip" issue: #106024

@lukasolson lukasolson added loe:x-large Extra Large Level of Effort and removed loe:weeks labels Feb 21, 2023
@stratoula
Copy link
Contributor

Closing as duplicate of #16096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:x-large Extra Large Level of Effort Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

7 participants