Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
An error is sometimes given when trying to make a chart load right when the page is loaded
-
I want a chart to load immediately when the page gets loaded so i made a function that tells mango to refresh the providers on load
this.onload = function (){ providerManager.refreshProviders(); };
The problem is that sometimes when the page is loaded the browser gives me this error.
TypeError: this.amChart.validateData is not a function
Do you have any idea what might cause it? If it's caused by some mango script not being loaded yet, how should I go about making the browser wait until everything is properly loaded before making the call? Isn't this.onload supposed to wait until everything is ready?
-
This sort of thing is a bit tricky and I would be remiss if I didn't tell you about what we've been working on for custom dashboards. My best advice to you would be to abandon the approach you are on now and jump on the Angular band wagon. With our new Angular approach you don't have to worry about this sort of thing. See Joel's post mango-angularjs-beta
-
Thanks. I'll get started with your suggestion.