krispo / angular-nvd3

AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API.
http://krispo.github.io/angular-nvd3
MIT License
1.29k stars 377 forks source link

Help on updating data #662

Open allomart1 opened 7 years ago

allomart1 commented 7 years ago

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