So let's take a look at how that works.…At the very end of our script,…I'm going to add an event handler here.…So I'll do on and then I'll target first the mouseover…and this is going to of course, like usual,…be a callback.…And once I am here, then I need to target…the current bar that I am on so I'll use a D3…and then select the current element using the this keyword.…And then I can change the opacity to anything I want to.…
- What is D3.js?
- Controlling HTML within selections
- Binding data to the DOM
- Drawing SVG graphics with D3
- Using ordinal scales
- Adding events and transitions
- Working with data