novus/nvd3 — pull request #8 by andreaslyngstad (2012-11-27 08:30:25+00:00)
Title: Adding legend to pieChart sub-compnents

Was getting
```javascript
Uncaught TypeError: Cannot read property 'dispatch' of undefined
```

When running

chart.legend.dispatch.on('legendClick.testing', function(e){
console.log("It does not work")
});

So, I added

chart.legend = legend;

to the pieChart model and now it works