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] Color Mapping isn't working for custom ranges and multi-top values #187519

Open
bhavyarm opened this issue Jul 3, 2024 · 3 comments
Open
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@bhavyarm
Copy link
Contributor

bhavyarm commented Jul 3, 2024

Kibana version: main

Browser version: chrome latest

Original install method (e.g. download page, yum, from source, etc.): from snapshots

Describe the bug: If you add custom ranges for lens bar charts, color mapping feature doesn't work. You have to turn it off to see the colors.

Steps to reproduce:
(Followed this tutorial - https://www.elastic.co/guide/en/kibana/current/create-a-dashboard-of-panels-with-web-server-data.html#custom-ranges. The bug happens before the conversion to donut chart)

  1. Go to dashboard ->create viz-> lens -> select kibana sample data logs
  2. Drag bytes into vertical axis - change it into sum
  3. Drag bytes into breakdown field
  4. Click on bytes in breakdown and add custom ranges
  5. The chart is all grey
  6. Turn off the color mapping
  7. Chart is colorful again
Screenshot 2024-07-03 at 4 17 23 PM
color_mapping_isn.t_working.mp4
@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Jul 3, 2024
@elasticmachine
Copy link
Contributor

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

@nickofthyme
Copy link
Contributor

nickofthyme commented Jul 3, 2024

Thanks @bhavyarm I can confirm the issue. Two additional observations:

  • The colors are grey even with explicit color mappings.
  • The colors are not being set as unassigned but rather always a default grey.
image

I think this would be good to look at when we work on #179322

@mbondyra mbondyra self-assigned this Jul 9, 2024
@mbondyra
Copy link
Contributor

mbondyra commented Jul 10, 2024

It also doesn't work for multitop values, here's the dashboard screenshot with all the cases I checked:
image

In total, all the cases that don't work are:

  1. Unassigned multi top values for xy chart
  2. Unassigned multi top values for partition chart
  3. 'Other' for partition chart
  4. custom ranges - both unassigned and assigned, both xy and partition

@mbondyra mbondyra changed the title [Lens] Colormapping isn't working for custom ranges for lens bar charts [Lens] Colormapping isn't working for custom ranges and multi-top values Jul 10, 2024
@mbondyra mbondyra removed their assignment Jul 10, 2024
@mbondyra mbondyra added loe:medium Medium Level of Effort impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Jul 10, 2024
@nickofthyme nickofthyme self-assigned this Aug 22, 2024
@nickofthyme nickofthyme changed the title [Lens] Colormapping isn't working for custom ranges and multi-top values [Lens] Color Mapping isn't working for custom ranges and multi-top values Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants