D3 Mouse Move on Two Graphs at once
问题 How can I capture the mouse over events of two graphs at once. I need to do something like shown in the image below: Can anyone guide me as to how should I approach this ?. So far I was able to get the simple mouseover working for a single graph. 回答1: I'm the author of function-plot which is able to dispatch events to multiple graphs one of them being mouseover , for example var width = 300 var height = 180 var a = functionPlot({ target: '#a', height: height, width: width, data: [{ fn: 'x^2'