D3 and jquery combined

Dear FCC community,

Most of the functionality in my lab are functioning right now. But, there is a problem that I have encountered and cannot solve. Since there are many words in the bar chart, words can appear at the bottom of the screen and so are not visible to the user. That’s why I want to implement a dynamic scroll to that specific bar with that specific word. I have both d3 and jquery in my code. And I get stuck a lot how to realize this functionality.

I am still a beginner at web programming. I hope you can help me out.

Here is the fiddle: http://jsfiddle.net/j4qav07u/

Thank you very much.