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] Multi-dimensional Legend - separate visually #3402

Closed
Tracked by #57707
skearns64 opened this issue Mar 20, 2015 · 16 comments
Closed
Tracked by #57707

[Lens] Multi-dimensional Legend - separate visually #3402

skearns64 opened this issue Mar 20, 2015 · 16 comments
Labels
Feature:Lens Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@skearns64
Copy link

When creating a multi-dimentional visualization (e.g. Pie chart based on multiple levels of aggs), the legend can sometimes get unwieldy, as the values from both levels of aggregation are combined into a single list.
It would be nice to have the values separated into levels that correspond with the level of the Aggs. I could imagine going in two directions - one where the 2nd level is listed per first-level, and one where the values were simply grouped by level.

Example:
Data: Crime Data about car thefts, containing brand, model, color, etc.
Query: Terms aggregation - top 2 brands (by count of thefts), sub-aggregation: Terms Agg - top 3 models by count of thefts.

Legend Output today (made-up data!):
Ford and Chevrolet are brands that come from the top-level aggregation, while the rest are models that come from the

Ford 
F150
Chevrolet
Taurus
Corvette
Malibu
Fusion
Volt

Possibility 1

Level 1: 
  Chevrolet
  Ford
Level 2:
  F150
  Taurus
  Corvette
  Malibu
  Fusion
  Volt

Possibility 2 (could result in duplication of values, depending on the data)

Chevrolet
  Corvette
  Malibu
  Bolt
Ford
  F150
  Taurus
  Fusion
@ohTHATaaronbrown
Copy link

👍 this would make legends for charts with sub aggregations much more readable

@trevan
Copy link
Contributor

trevan commented Apr 8, 2015

I'm looking at implementing the second possibility. Should have a pull request today or tomorrow.

@TiNico22
Copy link

+1 this is really difficult to read the legend in case of multiple aggregation level
multipleagg

@GrahamHannington
Copy link

+1

Yes, the combined legend of a multilevel pie chart is confusing.

@bertol83
Copy link

+1

1 similar comment
@kaib
Copy link

kaib commented Oct 1, 2015

+1

@enp
Copy link

enp commented Mar 2, 2016

+1

2 similar comments
@rggassner
Copy link

+1

@viniciuscoimbra
Copy link

+1

@tbragin tbragin added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Nov 15, 2016
@iamkelvinloke
Copy link

+1

@dav3860
Copy link

dav3860 commented Nov 18, 2016

I agree

@epixa epixa removed the P3 label Apr 25, 2017
@arich-net
Copy link

+1

@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@DanilKonon
Copy link

+1

1 similar comment
@cwh1te
Copy link

cwh1te commented Nov 4, 2021

+1

@ghudgins
Copy link
Contributor

dependent elastic-charts issue: elastic/elastic-charts#223

@ghudgins ghudgins changed the title Multi-dimensional Legend - separate visually [Lens] Multi-dimensional Legend - separate visually Aug 16, 2022
@stratoula
Copy link
Contributor

This is available in Lens and aggbased partition charts. Here is a screenshot of a multilevel pie chart with the nested legend switch set to true.

image

The issue mentioned above elastic/elastic-charts#223 is a bit different and of a larger scope. So I closing this :)

alexwizp added a commit to alexwizp/kibana that referenced this issue May 20, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue May 20, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue May 20, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue May 22, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue May 23, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue May 26, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue May 29, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue May 31, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue Jun 3, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue Jun 6, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue Jun 10, 2024
alexwizp added a commit to alexwizp/kibana that referenced this issue Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.