Question

Is there a way to return a hyperling in the tooltip? (p2 is the plotted data)

p2$chart(tooltipContent = "#! function(key, x, y, e, graph ){return 'link'.link('http://www.google.com')} !#")

There is what seems to be a hyperlink displayed in the tooltip, but clicking on it does not elicit a response. I'm fairly new with R and rCharts, so any help would be greatly appreciated!

Was it helpful?

Solution

This works: p2$chart(tooltipContent = "#! function(key, x, y, e, graph ){return 'link';} !#")

but the link is unclickable due to the hover

(Special thanks to @Ramnath for help with this issue)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top