So, when I try to chart with dojox, creating an instance of Chart(id) requires an ID for a DOM node to know where to create the chart, I believe. So, I can understand how this would work in the same document, but it seems best to keep the Widget.js file separate from the Widget.html file for functionality. The only problem is, the HTML file doesn't seem to get loaded before the JavaScript file, meaning Chart('ChartNode') is called before <div id='ChartNode'></div> even exists, and if I use a DOMContentLoader or dom.ready() function to try and make it wait for the HTML file to load, then the code creating the chart doesn't run at all. I'm relatively new to javascript, so is there something I'm missing in general, or is this a problem with the way the Webappbuilder runs widgets?
Thanks!