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

[Lens] Enable value labels on chart for other xy chart types #82954

Closed
3 tasks
flash1293 opened this issue Nov 9, 2020 · 7 comments · Fixed by #143635
Closed
3 tasks

[Lens] Enable value labels on chart for other xy chart types #82954

flash1293 opened this issue Nov 9, 2020 · 7 comments · Fixed by #143635
Assignees
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@flash1293
Copy link
Contributor

flash1293 commented Nov 9, 2020

Currently Lens allows to show the values of individual bars for unstack non-histogram bar charts. As this includes a lot of configurations we should resolve existing issues to roll out the rest of this features.

Problems:

  • Stacked bars: Labels can be pushed out of the current slice if it's not high enough:

Screenshot 2020-11-09 at 15 04 19

* Histogram bars: Labels can be wrapped in a weird way or not shown at all because labels are too narrow:

Screenshot 2020-11-09 at 14 57 00

* Area / Line charts: Not supported by elastic-charts yet: https://github.com/elastic/elastic-charts/issues/797

Tasks

  • Find solutions for individual problems
  • Make sure elastic-charts supports targeted solution
  • Expose setting in Lens
@flash1293 flash1293 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Nov 9, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
Copy link
Contributor Author

cc @markov00

@govindrai
Copy link

Any updates on this?

my 2¢: having/enabling the option, despite the called out shortcomings, is better than not having it. For situations where the labels appear weird due to space constraints, the author can determine to either not show the labels or change their axis to support less data/buckets, deal with it or disable it. In the mean time, users who can profit from this feature will be get great value and your team can continue to work on figuring out solutions to those other nuances.

Thanks!

@flash1293
Copy link
Contributor Author

Thanks for your input @govindrai , I can see your point. Personally I think it’s justified to make this move. @ghudgins @markov00 any opinions on this?

@ghudgins
Copy link
Contributor

ghudgins commented Aug 5, 2022

nothing but agreement from me! I think the reason this hasn't made progress is the dependent line vis issue in elastic-charts. @flash1293 this might be a good one to try to help the datavis team on since they're busy doing other amazing things in the short term

also happy to add this to the supported types in the meantime too. I don't think this issue runs that risk of adding too much configuration that we sometimes discuss on the more granular settings.

@apolinario
Copy link

apolinario commented Sep 26, 2022

I would just like to agree with @govindrai
I have this chart with a date histogram which could totally fit labels on top of them; I'd rather have it available on Visual Options like I do with filters and top values in parallel to a potential visual solution being found for when this is way more granular
image

@flash1293
Copy link
Contributor Author

Thanks for you +1 @apolinario - we have planned this in for the near future.

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 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants