Skip to content
Tiffany Brown edited this page Jan 24, 2014 · 4 revisions

nv.addGraph

nv.addGraph( generator(), callback() )
nv.addGraph( { generate: generator(), callback: callback() } )

Schedules a new graph to be rendered using the given generator method. The callback argument is optional.

FIXME: When is it called back? Does it get any arguments?

nv.addGraph(function(){
  var chart = nv.models.lineChart();
  //...
  d3.select("svg").call(chart);
  return chart;
});

Clone this wiki locally