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

[Maps] Layer legend color remains black when grouping by strings #67047

Closed
n0othing opened this issue May 19, 2020 · 2 comments · Fixed by #67141
Closed

[Maps] Layer legend color remains black when grouping by strings #67047

n0othing opened this issue May 19, 2020 · 2 comments · Fixed by #67141
Assignees
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.9.0 v8.0.0

Comments

@n0othing
Copy link
Member

Kibana version: 7.7

Describe the bug:

A map layer's legend color remains black when using a custom color ramp + grouping by strings instead of numbers

Steps to reproduce:

  1. Add Sample web logs sample data in Kibana.
  2. Open the [Logs] Total Requests and Bytes and create a layer using the parameters shown in the screenshot.
  3. The new layer's legend icon will be black.

legend_black

@n0othing n0othing added bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels May 19, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@nreese
Copy link
Contributor

nreese commented May 20, 2020

The problem exists in https://github.com/elastic/kibana/blob/master/x-pack/plugins/maps/public/classes/styles/vector/components/legend/extract_color_from_style_property.js#L28. The logic pulls the first color from the color ramp but is pulling customColorPalette[0].colorCategory instead of customColorPalette[0].color.

I will put up a fix

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 [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants