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 for pie charts with no data #2037

Merged
merged 1 commit into from
Nov 25, 2014
Merged

Conversation

lukasolson
Copy link
Member

When you create a pie chart and then filter so that the pie chart has no data (no results), AND you have the legend enabled (which it is by default), you get an error.

This change adds an extra null check to make sure a property is defined before accessing it.

Closes #1958.

@rashidkpc
Copy link
Contributor

LGTM

@rashidkpc rashidkpc assigned lukasolson and unassigned rashidkpc Nov 25, 2014
lukasolson added a commit that referenced this pull request Nov 25, 2014
Fix for pie charts with no data
@lukasolson lukasolson merged commit 6c7dde5 into elastic:master Nov 25, 2014
@lukasolson lukasolson deleted the issue-1958 branch February 11, 2016 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pie chart fatal error on no data
2 participants