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] Allow partial config to be kept when switching from metric/table to Cartesian charts #54943

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

Comments

@AlonaNadler
Copy link

AlonaNadler commented Jan 15, 2020

**Kibana version:**7.5.x
When fields are placed in configurator and users change charts the configurator clears the selected fields.

When does it happen:

  • When moving from metric visualization to any of the xy charts
  • When moving from the table to any of the xy charts
    bug

Lens should persist the fields in the configurator so when moving between the chart or going back to the chart it will stay populated

@AlonaNadler AlonaNadler added the bug Fixes for quality problems that affect the customer experience label Jan 15, 2020
@wylieconlon
Copy link
Contributor

This happens mostly because we don't treat it as a valid bar chart without an X axis. I'm not sure what you were expecting, but these are some of the options we could consider:

a) The metric is assigned to the Y axis, and there is an error saying an X axis is required
b) A suggestion would be selected, such as "metric over time"

@wylieconlon wylieconlon added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jan 16, 2020
@elasticmachine
Copy link
Contributor

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

@AlonaNadler
Copy link
Author

Showing an error is not great.

I prefer
b) A suggestion would be selected, such as "metric over time"

@rayafratkina rayafratkina removed the bug Fixes for quality problems that affect the customer experience label Jan 17, 2020
@rayafratkina
Copy link
Contributor

Option A would be part of a more general effort to add better error states. We can also make a suggestion to the user about how to address this.

Possible complication: state management issues may complicate this.

@wylieconlon wylieconlon changed the title Lens clears the configurator when moving from metric/table to Cartesian charts [Lens] Allow partial config to be kept when switching from metric/table to Cartesian charts Jan 24, 2020
@flash1293 flash1293 added the enhancement New value added to drive a business result label Aug 6, 2020
@flash1293
Copy link
Contributor

This is fixed in the latest version of Lens - it shows an xy chart without an x axis

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

5 participants