Perhaps there is some help. Two diagrams, one pie, one stack, but only showing the legends on the pie. The data is not identical, but the legends ... Want to update both clicks on the pie legends.
chart.legend.dispatch.on('stateChange.pie', function(d,i){ setTimeout(function() { stackedAreaChart.dispatch.changeState(d,i); stackedAreaChart.update(); }, 100); });
Note: using ".pie" extends the event (library) stateChange (does not overwrite it). Another diagram, stacked, should be in scope. Note that there is a changeState and stateChange event, it is best to look at the un-minified nvd3 js file ..
source share