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

Treemap chart throws error when there is no data #2090

Closed
lePerdu opened this issue Dec 4, 2020 · 0 comments · Fixed by FarmAI/erp_web#12 or vikas-ukani/load-backend-api#7
Closed

Comments

@lePerdu
Copy link

lePerdu commented Dec 4, 2020

Bug report

When no data is provided to treemap charts, an error is thrown when rendering the chart.

Codepen

https://codepen.io/leperdu/pen/VwKeoqR

Explanation

  • What is the behavior you expect?
    The chart should show the text configured via the noData option. And not throw any exceptions.
  • What is happening instead?
    Rendering the chart throws an error: Uncaught (in promise) TypeError: t is undefined. The chart renders the noData text correctly and there does not seem to be any other issues with the chart.
  • What error message are you getting?
    Uncaught (in promise) TypeError: t is undefined

As mentioned, the chart seems to work fine, but the error can cause the application to crash (at least it does in debug mode with React).

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