Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在工具提示中返回一个 hyperling?(p2 是绘制的数据)
p2$chart(tooltipContent = "#! function(key, x, y, e, graph ){return 'link'.link('http://www.google.com')} !#")
工具提示中似乎显示了一个超链接,但单击它不会引起响应。我对 R 和 rCharts 还很陌生,所以任何帮助都将不胜感激!
这有效: p2$chart(tooltipContent = "#! function(key, x, y, e, graph){return 'link';} !#")
但由于悬停,链接无法点击
(特别感谢@Ramnath 对这个问题的帮助)