Skip to content

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

@stratoula

Description

@stratoula

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

Metadata

Metadata

Assignees

Labels

:LensKibana Lens related issue:legendLegend related issue:partitionPartition/PieChart/Donut/Sunburst/Treemap chart relatedbugSomething isn't workingkibana cross issueHas a Kibana issue counterpart

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions