I'm new using nvd3 and I try to do something but I can't find the right way to do it, I'll try to be clear. I need to make a little change to a nv.models.lineChart.
I need to add a button and when I click it, remove a last element from the data and update the chart. I try to do that but creating the button inside the library Example:
nv.models.lineChart = function () {
d3.select("body")
.append("button")
.attr('type','button')
.text("test").on("click",function(){
//Code here ...
// I need to access data what are binding to svg here
Is there any way to do it with nvd3?
});
//============================================================
// Public Variables with Default Settings
//------------------------------------------------------------
//...
}