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

Partition nested legends are not depicted well when there are same values per metric #918

Closed
stratoula opened this issue Nov 25, 2020 · 3 comments · Fixed by #947
Closed
Assignees
Labels
bug Something isn't working kibana cross issue Has a Kibana issue counterpart :legend Legend related issue :Lens Kibana Lens related issue :partition Partition/PieChart/Donut/Sunburst/Treemap chart related

Comments

@stratoula
Copy link

stratoula commented Nov 25, 2020

Describe the bug
I have created a Lens pie chart with two layers. While the pie chart is rendered correctly I can see on the legend bar (with the nested switch on) that the nested legends are not displayed correctly. Some of the values are repeated with a color of a different series.

Screenshot 2020-11-25 at 10 54 56 AM

Here the problem is more obvious:
Screenshot 2020-11-25 at 11 19 57 AM

To Reproduce
Steps to reproduce the behavior:

  1. Go to Kibana Lens
  2. Select the kibana_sample_data_logs dataset
  3. Drag and drop the machine.os.keyword and the memory fields
  4. Switch on the nested legend from the top menu
  5. Check that the legends are not displayed correctly

Expected behaviour
The nested legends should appear without duplicates from other series.

Additional context
I have also found out this problem on migrating the vislib pie chart to the es-charts one.

Kibana cross-issue
elastic/kibana#84307

@stratoula stratoula added bug Something isn't working :legend Legend related issue :Lens Kibana Lens related issue labels Nov 25, 2020
@stratoula stratoula changed the title Partition nested legend is not depicted well when there are same values per metric Partition nested legends are not depicted well when there are same values per metric Nov 25, 2020
@stratoula stratoula added the kibana cross issue Has a Kibana issue counterpart label Nov 25, 2020
@flash1293
Copy link

I can reproduce this outside of Lens as well: https://codesandbox.io/s/little-leaf-05w34?file=/src/App.tsx

@monfera monfera self-assigned this Dec 3, 2020
@monfera monfera added the :partition Partition/PieChart/Donut/Sunburst/Treemap chart related label Dec 8, 2020
@monfera
Copy link
Contributor

monfera commented Dec 9, 2020

Note to self, check the condition Marco references here: #939 (comment)

@monfera
Copy link
Contributor

monfera commented Dec 16, 2020

Fixed by #947

@monfera monfera closed this as completed Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kibana cross issue Has a Kibana issue counterpart :legend Legend related issue :Lens Kibana Lens related issue :partition Partition/PieChart/Donut/Sunburst/Treemap chart related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants