I am having a dataset, which consists of data for multiple days. Each day will be represented in one line. This should be put in graphs using Flot.js and the data is loaded via Angularjs. On $(document).ready, there is no data existing as it is loaded from the server afterwards via HTTP. As I do not want to put all 90 days (equals to 90 lines) into one single graph, I need to split them up into separate graphs. I have seen in various tutorials how to work with directives in Angular to achieve DOM manipulation. However, this requires (per my understanding) that the raw DOM element is already existing on the page (such as in this tutorial: How to Integrate Flot with AngularJS?) Actually, this is explaining the functionality of directives well, but only in case you have one data set. As I need to split the data set up for more than one graph, how can I put them in different graphs, which are not existing at page creation?
Thanks a lot for your help!