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

Pie chart fatal error on no data #1958

Closed
vasily-kirichenko opened this issue Nov 18, 2014 · 6 comments · Fixed by #2037
Closed

Pie chart fatal error on no data #1958

vasily-kirichenko opened this issue Nov 18, 2014 · 6 comments · Fixed by #2037
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Vislib Vislib chart implementation PR sent
Milestone

Comments

@vasily-kirichenko
Copy link

TypeError: Cannot read property 'resize' of undefined
    at Events.VisFactory.Vis.resize (http://wl-legio-13:5601/index.js?_b=3998:114340:36)
    at bound (http://wl-legio-13:5601/index.js?_b=3998:31957:21)
    at Function.Promise.try (http://wl-legio-13:5601/index.js?_b=3998:43240:26)
    at buildDefer (http://wl-legio-13:5601/index.js?_b=3998:85985:20)
    at wrappedCallback (http://wl-legio-13:5601/index.js?_b=3998:20764:81)
    at http://wl-legio-13:5601/index.js?_b=3998:20850:26
    at Scope.$eval (http://wl-legio-13:5601/index.js?_b=3998:21893:28)
    at Scope.$digest (http://wl-legio-13:5601/index.js?_b=3998:21705:31)
    at http://wl-legio-13:5601/index.js?_b=3998:21931:26
    at completeOutstandingRequest (http://wl-legio-13:5601/index.js?_b=3998:13588:10)
@rashidkpc
Copy link
Contributor

This part of #1887 please add any comments on no-data issues there. I was unable to replicate this exact exception, if you can attached a step-by-step reproduction to #1887 it would be tremendously helpful.

@rashidkpc rashidkpc added not reproducible bug Fixes for quality problems that affect the customer experience labels Nov 18, 2014
@rashidkpc
Copy link
Contributor

Reopening as the scope of this is somewhat outside of #1887

@rashidkpc rashidkpc added bug Fixes for quality problems that affect the customer experience Feature:Vislib Vislib chart implementation and removed bug Fixes for quality problems that affect the customer experience not reproducible labels Nov 18, 2014
@rashidkpc rashidkpc added this to the 4.0.0-BETA3 milestone Nov 18, 2014
@rashidkpc rashidkpc added the help wanted adoptme label Nov 18, 2014
@rashidkpc rashidkpc changed the title Fails to show legend on pie chart if no data available Pie chart fatal error on no data Nov 18, 2014
@rashidkpc
Copy link
Contributor

Steps to reproduce

  1. Create a pie chart
  2. Split slices on some field
  3. Enter 'sdfghgkdfjgh' into the query bar
  4. Click apply, observe fatal.

@vasily-kirichenko
Copy link
Author

If I turn the legend off, the error is gone, hence the old title.

@rashidkpc
Copy link
Contributor

Ah, good to know.

@Darthops
Copy link

I'm also suffering from this, getting the error if the Pie Chart is displayed on the dashboard and I select a timescale where there is no data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Vislib Vislib chart implementation PR sent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants