rCharts rNVD3 tooltip customisation
问题 I have the following problem; I am using the rCharts wrapper around NVD3 to produce a simple line chart. I wish to modify the default tootip behavior. Using the NVD3 library I have been able to do this with the following code; .tooltipContent(function(key,x ,y,e,graph){ var idx = x.replace("s","") var thumbPath = 'snap_' + idx + '.png' return '<h3>' + key + '</h3>' + '<p>' + y + ' at ' + x + '</p>' + '<img src="'+ thumbPath+ '" alt="some_text">' }) This shows different thumbnails for