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

Fix/vislib click error #31896

Merged
merged 2 commits into from
Feb 26, 2019
Merged

Fix/vislib click error #31896

merged 2 commits into from
Feb 26, 2019

Conversation

ppisljar
Copy link
Member

@ppisljar ppisljar commented Feb 25, 2019

Summary

resolves #31409
resolves #31519

fixes crash on clicking pie/bar with count agg only

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@ppisljar ppisljar added review v7.0.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 v7.2.0 labels Feb 25, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Tested and works for bar charts and pie charts, LGTM.

d3.event.target.nearestViewportElement.__data__ : d3.event.target.__data__;
const isSlices = !!(_data && _data.slices);
clickEventResponse(d, props = {}) {
let isSlices = props.isSlices;
Copy link
Contributor

@flash1293 flash1293 Feb 25, 2019

Choose a reason for hiding this comment

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

Is this just for testing to avoid mocking d3 here? If yes, the JSdoc of the function could be updated to reflect this.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes ... well it would be nice if we wouldn't use that d3 magic at all, but removing it would take much more time i guess

@ppisljar ppisljar merged commit 6eb1503 into elastic:master Feb 26, 2019
ppisljar added a commit to ppisljar/kibana that referenced this pull request Feb 26, 2019
ppisljar added a commit to ppisljar/kibana that referenced this pull request Feb 26, 2019
ppisljar added a commit that referenced this pull request Feb 26, 2019
ppisljar added a commit that referenced this pull request Feb 26, 2019
@ppisljar ppisljar added the chore label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore review Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.0.0 v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kibana crashes when clicking on bar in Visualize. Clicking on count pie chart throws error
3 participants