You are mixing up tooltip specification for polycharts
with nvd3
. rCharts
is merely a wrapper that lets you access functionalities within these js libraries, and since each library has a different way to let you specify tooltips, things are different. Here is how to make it work
p1$chart(tooltipContent = "#! function(key, x, y, e){
return key + ' ' + e.point.year
} !#")
p1