I am getting some data via a jquery ajax call and trying to load it into an angularjs chart (specifically using NVD3.org). However the chart is loading before the ajax calls finishes and data is retrieved, how do I make the chart wait for the ajax call to finish?I am getting some data via a jquery ajax call a