I\'m using nvd3\'s piechart.js component to generate a piechart on my site. The provided .js file includes several var\'s, as follows:
var margin = {top: 30,
I think you're missing the 'x' parameter in your tooltip function. The format of the function call is:
function(key, x, y, e, graph)