First of all I must say I am completely new on Angular.js, NDV3 and D3.js. I have been using other charting libraries like flot, which I found quite easy to use. For different reasons I'd like to try this one, but I don't get to understand how can I update data outside the "declaration" of the chart.
I have a function called when submitting a form which makes an ajax get from a PHP script that get data from a mysql database, and then update the graph data.
Here you have a demo of what I'm trying to do: plunker
First of all I must say I am completely new on Angular.js, NDV3 and D3.js. I have been using other charting libraries like flot, which I found quite easy to use. For different reasons I'd like to try this one, but I don't get to understand how can I update data outside the "declaration" of the chart. I have a function called when submitting a form which makes an ajax get from a PHP script that get data from a mysql database, and then update the graph data. Here you have a demo of what I'm trying to do: plunker