【发布时间】:2016-05-15 02:00:58
【问题描述】:
我使用d3.js 编写了这段代码。
这是我的问题:
当您将鼠标悬停在矩形上时,会出现弹出工具提示,但当指针悬停在矩形内的文本上时不会出现。
我希望在鼠标悬停在文本以及形状的其他部分上时显示工具提示。这如何实现?
这是我的矩形代码:
cartridgeRectangles.push({"x_axis":startx+2, "y_axis":90+textbeginy, "width":35, "height":15, "color":discovery_status_color, "stroke":"#33CC33", "thickness":1, "mover":chassisDetails , "movercolor":"darkgreen", "mout":"True", "moutcolor":"#33CC33" });
【问题讨论】:
-
考虑在新帖子中询问有关 gif 图像的问题。问候,
标签: javascript html css svg d3.js