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] Improve table suggestions when dragging fields onto the table #60048

Open
wylieconlon opened this issue Mar 12, 2020 · 5 comments
Open
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects

Comments

@wylieconlon
Copy link
Contributor

When a user drops a field into the Lens table, the results are unexpected. The main reason is that the table suggestions are built with the same logic as bar/line suggestions, and then limited. Tables need their own suggestion logic.

Examples of unexpected behavior:

  • Bucketed aggregations like Terms are added at the top level instead of the bottom level.
  • When a number field is added to an empty table, the default suggestion is Date Histogram + Number. Date histograms are less useful in tables.
  • String fields show too little data in tables, as the default size is 3 across Lens. Tables can show denser information, especially for string fields.
  • If a field like geo.src is already used in the table, the generated table will usually be reductive instead of additive. Users don't expect reductive suggestions here.

Solving these problems is likely dependent on cleaning up suggestion logic and solving some of the architectural issues with how datasources and visualizations work together.

@wylieconlon wylieconlon added Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Mar 12, 2020
@wylieconlon wylieconlon added this to Long-term goals in Lens via automation Mar 12, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@wylieconlon
Copy link
Contributor Author

  • Bucketed aggregations like Terms are added at the top level instead of the bottom level.
  • When a number field is added to an empty table, the default suggestion is Date Histogram + Number. Date histograms are less useful in tables.
  • String fields show too little data in tables, as the default size is 3 across Lens. Tables can show denser information, especially for string fields. [Lens] Change top values default from 3 to 5, with some exceptions #62386
  • If a field like geo.src is already used in the table, the generated table will usually be reductive instead of additive. Users don't expect reductive suggestions here.

@flash1293 flash1293 added the enhancement New value added to drive a business result label Aug 6, 2020
@flash1293
Copy link
Contributor

Another improvement (which is more performance related): Dragging new string fields into the workspace will add them as top value dimensions. This will get relatively expensive for a lot of fields as nested terms aggregations have to be created.

In a lot of cases the user only wants to show a value from the document and it will always be the same one for all documents (like a partially aggregated doc table). These large nested term aggregation are quickly becoming expensive.

My suggestion:

  • Default to last value for the second dragged in string field instead of top values
  • Maybe introduce a new dimension group for string metrics because users might not get it otherwise

@wylieconlon
Copy link
Contributor Author

@flash1293 that sounds good, and this is a very common pattern when constructing data tables. We can give these suggestions a relatively high score because the Table is the only visualization that allows buckets + strings as metrics.

I don't think we need a new dimension group for this, I'm not sure what benefit it gives us.

@flash1293
Copy link
Contributor

The dimension group would nudge users to not drop string fields into the "rows" group - it's a little weird "last value" is a "metric" in this case. But we can also start without this.

@flash1293 flash1293 moved this from Long-term goals to 7.15 in Lens Apr 27, 2021
@flash1293 flash1293 moved this from 7.15 to Long-term goals in Lens Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
No open projects
Lens
  
Long-term goals
Development

No branches or pull requests

3 participants