Greetings,
I have created a tooltip that can be found at this link: http://jsfiddle.net/QBDGB/83/. In this tooltip, I have defined two "functions" like so:
function mousemove1(d) {
div
.text("data 1: " + d.value + " at " + formatTime(new Date(d.time)))
.style("left", (d3.event.pageX) + "px")
.style("top", (d3.event.pageY) + "px");
}
function mousemove2(d) {
div
.text("data2: " + d.value + " at " + formatTime(new Date(d.time)))
.style("left", (d3.event.pageX) + "px")
.style("top", (d3.event.pageY) + "px");
}
However, I am encountering an issue where the tooltip only displays the value of "data2" when I move the cursor. I would like the tooltip to recognize both series of data and display their respective values when hovering over the two curves of the graph.