Skip to content

Conversation

@flash1293
Copy link
Contributor

Fixes #80295

A suggestion request can contain a sub visualiation id (used by the chart switcher). So far the XY chart was not respecting this - this caused full data loss for some switches from other chart types (except for stacked bars, because that's the default and always has a suggestion)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
lens 1.0MB 1.0MB +202.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@flash1293 flash1293 marked this pull request as ready for review October 13, 2020 10:02
@flash1293 flash1293 requested a review from a team October 13, 2020 10:02
@flash1293 flash1293 added the Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// label Oct 13, 2020
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@wylieconlon wylieconlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure what problem this was solving at first, but after reading a little closer I found that the problem is reproduced with these steps:

  1. Switch to datatable
  2. Drag in 3 non-numeric fields, like dates or strings
  3. Try to switch to any XY chart other than "stacked bar" and it will remove the entire configuration

@flash1293
Copy link
Contributor Author

Yep, that's it, thanks @wylieconlon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Lens release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.10.0 v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lens] Switching to xy charts loses all dimensions if not all of them can be mapped

4 participants