nvd3.js - How to access toi NVD3 binding data -


i'm new using nvd3 , try can't find right way it, i'll try clear. need make little change nv.models.linechart.

i need add button , when click it, remove last element data , update chart. try creating button inside library example:

nv.models.linechart = function () {         d3.select("body")         .append("button")         .attr('type','button')         .text("test").on("click",function(){             //code here ...             // need access data binding svg here             there way nvd3?           });      //============================================================     // public variables default settings     //------------------------------------------------------------      //... }