拉斐尔矩形工具提示
我正在循环中使用以下代码绘制一系列矩形
paper.rect(((x) * cellSize), ((y) * cellSize), cellSize, cellSize).attr({ fill: rgbx, stroke: rgbx });
有没有办法在这些矩形上显示工具提示?是否有一个库可以显示气球工具提示(褪色)
我发现了类似的问题但不确定是否可以完成?
I am drawing series of rectangle using the following code in a loop
paper.rect(((x) * cellSize), ((y) * cellSize), cellSize, cellSize).attr({ fill: rgbx, stroke: rgbx });
Is there a way show tooltip on those rectangle? Is there a library that can show ballon tooltip (fadding)
I found similar question but not sure it can be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个简单的 Raphael 工具提示插件:http://www. strathausen.eu/en/2010/04/25/raphael-svg-tooltip/
虽然它明确提到了 SVG,但它在 IE 上应该可以正常工作(VML后端)也是如此。
Here's a simple Raphael plugin for tooltips: http://www.strathausen.eu/en/2010/04/25/raphael-svg-tooltip/
Although it mentiones SVG explicitly, it should work just fine on IE (VML backend) as well.
尝试使用
title
属性。element.attr({title: '鼠标悬停时显示的工具提示'});
Try the
title
attribute.element.attr({title: 'The tooltip to be displayed on mouse hover'});