Connect text and graphics graph-scroll takes a selection of explanatory text sections and dispatches active events as different sections are scrolled into to view. These active events are used to update a graph's state. d3.graphScroll() .sections(d3.selectAll('#sections > div')) .on('active', function(i){ console.log(i + 'th section active') }) Highlight active text The top most text section scrol