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] Handle mixed datatypes on the X axis better (i.e. date field and string field) #55899

Closed
wylieconlon opened this issue Jan 24, 2020 · 4 comments
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

Because Lens supports layers, users can mix data on the X axis and get confusing results. Because this is confusing, we need to find a solution. Some options might be:

  • Throw an error
  • Display multiple charts instead of only one
  • Hide data if it's not the right type
@wylieconlon wylieconlon added Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jan 24, 2020
@elasticmachine
Copy link
Contributor

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

@wylieconlon
Copy link
Contributor Author

Looked into this a bit, and it seems like we should be throwing an error at rendering time if this is configured. It's the best way to indicate to the user that they are doing something wrong.

@markov00
Copy link
Member

You can see this as a feature in specific cases:

  • when you are displaying categorical data from two different indices it's fine to have the x values mixed, usually, we render each set of x values (if they differ) one aside of the other

The only thing is missing is a way to sort in elastic-charts these values, we are going to add this feature, hopefully soon

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

We handle this nicely now, respecting formatting in the cases where mixing works fine (e.g. terms and filters) and throwing an error for ugly cases (e.g. date histogram + number histogram)

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
None yet
Development

No branches or pull requests

4 participants