javascript - Synchronizing multiple graphs using nvd3 -


i have 2 basic line graphs on page share same x axis. trying accomplish syncing these graphs when hovering on point on 1 graph, same hover event triggered on second graph.

so far have figured out how listen event via:

chart.lines.dispatch.on('elementmouseover.tooltip', function(e) {     // need trigger same event on xaxis of separate graph }); 

digging thru nvd3 , d3 source code hasn't brought revelation onto how accomplish far.

something should work guess.

chart1.lines.dispatch.on('customevent', chart2.lines.dispatch.customevent); 

Comments

Popular posts from this blog

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

wordpress - (T_ENDFOREACH) php error -

Using django-mptt to get only the categories that have items -