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] Use suggestion system in chart switcher for subtypes #60669

Closed

Conversation

wylieconlon
Copy link
Contributor

Summary

This PR has no user-facing changes yet, but it will be used by Pie charts and Treemaps. The reason this change is necessary is the following scenario:

  1. The user has configured a pie chart with 3 rings
  2. The user wants to switch to a treemap, but 3-level treemaps aren't supported yet
  3. The only way this works is by using the suggestion system to show a warning icon

Checklist

@wylieconlon wylieconlon added Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:Lens v7.7.0 labels Mar 19, 2020
@wylieconlon wylieconlon requested review from timroes, mbondyra and a team March 19, 2020 18:29
@elasticmachine
Copy link
Contributor

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

@wylieconlon
Copy link
Contributor Author

@elasticmachine merge upstream

@@ -94,7 +97,7 @@ export const metricVisualization: Visualization<State, PersistableState> = {
groupLabel: i18n.translate('xpack.lens.metric.label', { defaultMessage: 'Metric' }),
layerId: props.state.layerId,
accessors: props.state.accessor ? [props.state.accessor] : [],
supportsMoreColumns: false,
supportsMoreColumns: !props.state.accessor,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you shortly explain how this is related to that change and what it does?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually a separate issue. Need to fix separately.

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Tested locally on Chrome, code LGTM.

@mbondyra
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@wylieconlon
Copy link
Contributor Author

Closing this as this was mostly for use in the pie chart/treemap, and this isn't strictly needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants