• Recent
    • Tags
    • Popular
    • Register
    • Login

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    An error is sometimes given when trying to make a chart load right when the page is loaded

    Dashboard Designer & Custom AngularJS Pages
    2
    3
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nyoa
      last edited by

      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?

      Woody BeverleyW 1 Reply Last reply Reply Quote 0
      • Woody BeverleyW
        Woody Beverley @nyoa
        last edited by

        @nyoa

        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

        -WoodyB

        1 Reply Last reply Reply Quote 0
        • N
          nyoa
          last edited by

          Thanks. I'll get started with your suggestion.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post