Does anyone know if it is possible to call two separate functions in the same event using d3.js? I know that you can do this in JavaScript by simply splitting them into two semicolons, but not doing this with my specific case. I use a power layout chart with tool tips and have two separate tool tips that I want to use. When you hover over the mouse, a tooltip appears with the name of the node name, and then when I click, I want the second tooltip to show its description. On this click, though, I would like the first tooltip to disappear. Here is the code block that I am using:
.on("click", describe_tip.show) .on("mouseover", tip.show) .on("mouseout", tip.hide)
I want to call tip.hide along with describe_tip.show , but donβt know the correct syntax.
Any suggestions or help would be appreciated.
nocodaoh. 2013
source share